X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e8ba9215484578c9ea1acf05cc41a58b9a2ab8b7..ff70f4cf192a562c664400e6c20d202b83aa1c14:/package/base-files/files/sbin/sysupgrade?ds=inline diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index 7efb2b436..cf79114cb 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -127,8 +127,13 @@ elif ask_bool $SAVE_CONFIG "Keep config files over reflash"; then else export SAVE_CONFIG=0 fi + run_hooks "" $sysupgrade_pre_upgrade +kill_remaining TERM +sleep 3 +kill_remaining KILL + if [ -n "$(rootfs_type)" ]; then v "Switching to ramdisk..." run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade'