diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-21 11:44:57 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-04-24 18:51:10 +0200 |
commit | 4b195a611fe146969e813ce77ecf74ce5f9c176b (patch) | |
tree | 828aea9653a3a52ebf7734712aff9e52288ef6b0 /package/network/config | |
parent | 8e37d5b584f944aeea375d348ded21b28fa07c3c (diff) | |
download | mtk-20170518-4b195a611fe146969e813ce77ecf74ce5f9c176b.zip mtk-20170518-4b195a611fe146969e813ce77ecf74ce5f9c176b.tar.gz mtk-20170518-4b195a611fe146969e813ce77ecf74ce5f9c176b.tar.bz2 |
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>
Diffstat (limited to 'package/network/config')
-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 a825dfd..6cd167d 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() { |