Skip to content
Snippets Groups Projects
Commit bc1fc688 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

base-files: keep sysupgrade.tgz until /etc/init.d/done has been called


This makes interrupted boots after sysupgrade more reliable

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 44941
parent e890a3bc
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
START=95
boot() {
[ -d /tmp/root ] && mount_root done
rm -f /sysupgrade.tgz
# process user commands
[ -f /etc/rc.local ] && {
......
......@@ -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
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment