summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-06-10 08:24:31 +0000
committerJohn Crispin <john@openwrt.org>2013-06-10 08:24:31 +0000
commit1f52c5a72c0d5e65544c372d8c5b862f312c0cfa (patch)
tree3cfde99dfe598ec97dd91b882d19abe48c4a61c6 /package
parentdff1529d2a4ae725e3c6e11390c9240e9e72b550 (diff)
downloadmtk-20170518-1f52c5a72c0d5e65544c372d8c5b862f312c0cfa.zip
mtk-20170518-1f52c5a72c0d5e65544c372d8c5b862f312c0cfa.tar.gz
mtk-20170518-1f52c5a72c0d5e65544c372d8c5b862f312c0cfa.tar.bz2
sysupgrade: create state file so procd knows when a sysupgrade is in progress
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36893
Diffstat (limited to 'package')
-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 1ad6ea4..c507c3b 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