diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-22 15:11:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-22 15:11:20 +0000 |
commit | bc1fc688afcc974ac4deb417a51061975fd0aef5 (patch) | |
tree | 43b027a7a038208bd1f2db16edb19ecf2e70b07d /package/base-files/files/lib/preinit | |
parent | e890a3bc9a2bc8713be6719796724c4e24ecdfb9 (diff) | |
download | mtk-20170518-bc1fc688afcc974ac4deb417a51061975fd0aef5.zip mtk-20170518-bc1fc688afcc974ac4deb417a51061975fd0aef5.tar.gz mtk-20170518-bc1fc688afcc974ac4deb417a51061975fd0aef5.tar.bz2 |
base-files: keep sysupgrade.tgz until /etc/init.d/done has been called
This makes interrupted boots after sysupgrade more reliable
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44941
Diffstat (limited to 'package/base-files/files/lib/preinit')
-rw-r--r-- | package/base-files/files/lib/preinit/80_mount_root | 5 |
1 files changed, 1 insertions, 4 deletions
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 } } |