sysupgrade should stop network service
Username: Philip Prindeville
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1005
Supply the following if possible:
-
Device problem occurs on
-
Software versions of LEDE release, packages, etc.
-
Steps to reproduce
Applicable to all devices using the generic sysupgrade.
Seen on LEDE head.
To reproduce:
scp over a new .img file
upgrade it as “sysupgrade -v xyzzy.img”
While that’s running, you’ll be able to ping the router, but if you do an http connection to it, it will be reset.
What would be simpler would be doing a “/etc/init.d/network stop” just after killing off all services (including web servers).
This would make it easier to add scripting which auto-detects when the upgrade has completed by reconnecting after a reasonable wait (and retrying as necessary).