From: Hans Dedecker Date: Fri, 21 Apr 2017 09:44:57 +0000 (+0200) Subject: netifd: return error status in reload_service X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a1392e08c56e01f27e1312e59f4d90a50ed7d0bd;p=openwrt%2Fstaging%2Fhauke.git netifd: return error status in reload_service Based on a patch by Alexandru Ardelean. netifd ubus reload call returns the actual reload error status; return error status as well in reload_service Signed-off-by: Hans Dedecker (cherry picked from commit 4b195a611fe146969e813ce77ecf74ce5f9c176b) --- diff --git a/package/network/config/netifd/files/etc/init.d/network b/package/network/config/netifd/files/etc/init.d/network index a825dfd31f..6cd167d19d 100755 --- a/package/network/config/netifd/files/etc/init.d/network +++ b/package/network/config/netifd/files/etc/init.d/network @@ -26,9 +26,12 @@ start_service() { } reload_service() { + local rv=0 + init_switch - ubus call network reload + ubus call network reload || rv=1 /sbin/wifi reload_legacy + return $rv } stop_service() {