diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-21 11:44:57 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-12-13 15:17:54 +0100 |
commit | a1392e08c56e01f27e1312e59f4d90a50ed7d0bd (patch) | |
tree | 64caf5fe0b588b3e5e730b9fe628098aa1f5ecd9 /package | |
parent | 10182cb2c6c415cfd114cbbb076db2b368f80c1d (diff) | |
download | upstream-a1392e08c56e01f27e1312e59f4d90a50ed7d0bd.tar.gz upstream-a1392e08c56e01f27e1312e59f4d90a50ed7d0bd.tar.bz2 upstream-a1392e08c56e01f27e1312e59f4d90a50ed7d0bd.zip |
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 <dedeckeh@gmail.com>
(cherry picked from commit 4b195a611fe146969e813ce77ecf74ce5f9c176b)
Diffstat (limited to 'package')
-rwxr-xr-x | package/network/config/netifd/files/etc/init.d/network | 5 |
1 files changed, 4 insertions, 1 deletions
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() { |