From: Jeff Kletsky <git-comm...@allycomm.com> Wifi can, in certain situations, cause sysupgrade to fail silently with a 256 return value as all processes can't be killed. One of these situations is mesh with batman-adv active.
Added `wifi down` just prior to the killall sequence in stage2 Run-tested-on: Linksys EA8300 Signed-off-by: Jeff Kletsky <git-comm...@allycomm.com> --- package/base-files/files/lib/upgrade/stage2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/base-files/files/lib/upgrade/stage2 b/package/base-files/files/lib/upgrade/stage2 index bdc12c7426..d911614e36 100755 --- a/package/base-files/files/lib/upgrade/stage2 +++ b/package/base-files/files/lib/upgrade/stage2 @@ -124,6 +124,10 @@ kill_remaining() { # [ <signal> [ <loop> ] ] indicate_upgrade +if [ -x "$(which wifi)" ] ; then + wifi down + sleep 1 +fi killall -9 telnetd killall -9 dropbear killall -9 ash -- 2.20.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel