base-files: keep sysupgrade.tgz until /etc/init.d/done has been called
[openwrt.git] / package / base-files / files / lib / preinit / 80_mount_root
index 0292d82..f3fe788 100644 (file)
@@ -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
        }
 }