diff options
-rwxr-xr-x | package/base-files/files/etc/init.d/done | 1 | ||||
-rw-r--r-- | package/base-files/files/lib/preinit/80_mount_root | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/package/base-files/files/etc/init.d/done b/package/base-files/files/etc/init.d/done index b254aff..ed75e40 100755 --- a/package/base-files/files/etc/init.d/done +++ b/package/base-files/files/etc/init.d/done @@ -4,6 +4,7 @@ START=95 boot() { [ -d /tmp/root ] && mount_root done + rm -f /sysupgrade.tgz # process user commands [ -f /etc/rc.local ] && { diff --git a/package/base-files/files/lib/preinit/80_mount_root b/package/base-files/files/lib/preinit/80_mount_root index 0292d82..f3fe788 100644 --- a/package/base-files/files/lib/preinit/80_mount_root +++ b/package/base-files/files/lib/preinit/80_mount_root @@ -8,10 +8,7 @@ do_mount_root() { [ -f /sysupgrade.tgz ] && { echo "- config restore -" cd / - mv sysupgrade.tgz /tmp - tar xzf /tmp/sysupgrade.tgz - rm -f /tmp/sysupgrade.tgz - sync + tar xzf /sysupgrade.tgz } } |