mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 10:46:41 +00:00
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 4b195a611f
)
This commit is contained in:
parent
10182cb2c6
commit
a1392e08c5
@ -26,9 +26,12 @@ start_service() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reload_service() {
|
reload_service() {
|
||||||
|
local rv=0
|
||||||
|
|
||||||
init_switch
|
init_switch
|
||||||
ubus call network reload
|
ubus call network reload || rv=1
|
||||||
/sbin/wifi reload_legacy
|
/sbin/wifi reload_legacy
|
||||||
|
return $rv
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_service() {
|
stop_service() {
|
||||||
|
Loading…
Reference in New Issue
Block a user