From f18112883fbcea0a9e3cf7dd70531dc0a985aed0 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 17 Jan 2014 22:12:05 +0000 Subject: sysupgrade: do not kill any processes in failsafe sysugrade killed the lock causing failsafe to stop Signed-off-by: Alexander Couzens SVN-Revision: 39318 --- package/base-files/files/sbin/sysupgrade | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'package/base-files/files/sbin') diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index 56e9a92..e6588bf 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -210,9 +210,11 @@ run_hooks "" $sysupgrade_pre_upgrade ubus call system upgrade touch /tmp/sysupgrade -kill_remaining TERM -sleep 3 -kill_remaining KILL +if [ ! -f /tmp/failsafe ] ; then + kill_remaining TERM + sleep 3 + kill_remaining KILL +fi if [ -n "$(rootfs_type)" ]; then v "Switching to ramdisk..." -- cgit v1.1