From ff70f4cf192a562c664400e6c20d202b83aa1c14 Mon Sep 17 00:00:00 2001 From: jow Date: Sat, 19 Nov 2011 16:50:25 +0000 Subject: [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 --- package/base-files/Makefile | 2 +- package/base-files/files/sbin/sysupgrade | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'package') diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 9b3745ba9..b2d1d352a 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=base-files -PKG_RELEASE:=97 +PKG_RELEASE:=98 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ PKG_BUILD_DEPENDS:=opkg/host diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index d251cc914..cf79114cb 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' -- cgit v1.2.3