mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
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
This commit is contained in:
parent
e890a3bc9a
commit
bc1fc688af
@ -4,6 +4,7 @@
|
|||||||
START=95
|
START=95
|
||||||
boot() {
|
boot() {
|
||||||
[ -d /tmp/root ] && mount_root done
|
[ -d /tmp/root ] && mount_root done
|
||||||
|
rm -f /sysupgrade.tgz
|
||||||
|
|
||||||
# process user commands
|
# process user commands
|
||||||
[ -f /etc/rc.local ] && {
|
[ -f /etc/rc.local ] && {
|
||||||
|
@ -8,10 +8,7 @@ do_mount_root() {
|
|||||||
[ -f /sysupgrade.tgz ] && {
|
[ -f /sysupgrade.tgz ] && {
|
||||||
echo "- config restore -"
|
echo "- config restore -"
|
||||||
cd /
|
cd /
|
||||||
mv sysupgrade.tgz /tmp
|
tar xzf /sysupgrade.tgz
|
||||||
tar xzf /tmp/sysupgrade.tgz
|
|
||||||
rm -f /tmp/sysupgrade.tgz
|
|
||||||
sync
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user