summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-11-19 16:50:25 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-11-19 16:50:25 +0000
commitff70f4cf192a562c664400e6c20d202b83aa1c14 (patch)
tree1e00ffb3ad1fc3fbebea39d5810109f1b1baf812 /package/base-files/files
parente194f60a49979616867b44d249156e37728b3cbd (diff)
[package] base-files: kill remaining processes after running user hooks (#10461)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29256 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/sbin/sysupgrade4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade
index d251cc914f..cf79114cbb 100755
--- a/package/base-files/files/sbin/sysupgrade
+++ b/package/base-files/files/sbin/sysupgrade
@@ -128,12 +128,12 @@ else
export SAVE_CONFIG=0
fi
+run_hooks "" $sysupgrade_pre_upgrade
+
kill_remaining TERM
sleep 3
kill_remaining KILL
-run_hooks "" $sysupgrade_pre_upgrade
-
if [ -n "$(rootfs_type)" ]; then
v "Switching to ramdisk..."
run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade'