aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-06-10 08:24:31 +0000
committerJohn Crispin <blogic@openwrt.org>2013-06-10 08:24:31 +0000
commitb21f877df0afd61c406e84b71515640eac43480c (patch)
treef3654b2ad59933867c9458c64d9b3fcd5a488a37 /package/base-files
parent037242e6e4226b198e8f8f1c947c7590ac9f33d4 (diff)
downloadmaster-187ad058-b21f877df0afd61c406e84b71515640eac43480c.tar.gz
master-187ad058-b21f877df0afd61c406e84b71515640eac43480c.tar.bz2
master-187ad058-b21f877df0afd61c406e84b71515640eac43480c.zip
sysupgrade: create state file so procd knows when a sysupgrade is in progress
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36893 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/sbin/sysupgrade1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade
index 1ad6ea44a1..c507c3bfdf 100755
--- a/package/base-files/files/sbin/sysupgrade
+++ b/package/base-files/files/sbin/sysupgrade
@@ -180,6 +180,7 @@ fi
run_hooks "" $sysupgrade_pre_upgrade
ubus call system upgrade
+touch /tmp/sysupgrade
kill_remaining TERM
sleep 3