mvebu: fix sysupgrade
[openwrt/openwrt.git] / target / linux / mvebu / base-files / lib / upgrade / linksys.sh
index fc403332bd38fc521a056ab85783abd90629a1cf..63d1cd14a4deed407b217a518ae25a752f62969e 100644 (file)
@@ -73,14 +73,7 @@ platform_do_upgrade_linksys() {
        }
 }
 
-linksys_preupgrade() {
-       export RAMFS_COPY_BIN="${RAMFS_COPY_BIN} /usr/sbin/fw_printenv /usr/sbin/fw_setenv"
-       export RAMFS_COPY_BIN="${RAMFS_COPY_BIN} /bin/mkdir /bin/touch"
-       export RAMFS_COPY_DATA="${RAMFS_COPY_DATA} /etc/fw_env.config /var/lock/fw_printenv.lock"
-
-       [ -f /tmp/sysupgrade.tgz ] && {
-               cp /tmp/sysupgrade.tgz /tmp/syscfg/sysupgrade.tgz
-       }
+platform_copy_config_linksys() {
+       cp -f /tmp/sysupgrade.tgz /tmp/syscfg/sysupgrade.tgz
+       sync
 }
-
-append sysupgrade_pre_upgrade linksys_preupgrade