sysupgrade: create state file so procd knows when a sysupgrade is in progress
[openwrt.git] / package / base-files / files / sbin / sysupgrade
index 1ad6ea4..c507c3b 100755 (executable)
@@ -180,6 +180,7 @@ fi
 run_hooks "" $sysupgrade_pre_upgrade
 
 ubus call system upgrade
+touch /tmp/sysupgrade
 
 kill_remaining TERM
 sleep 3