netifd: fix stopping netifd + interfaces
stop() is overwritten by rc.common, so implement stop_service instead. While at it, remove the now unnecessary restart() override Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
b8ea9efc58
commit
942ac18c8a
1 changed files with 3 additions and 10 deletions
|
@ -31,9 +31,10 @@ reload_service() {
|
||||||
/sbin/wifi reload_legacy
|
/sbin/wifi reload_legacy
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop_service() {
|
||||||
/sbin/wifi down
|
/sbin/wifi down
|
||||||
procd_kill network ''
|
ifdown -a
|
||||||
|
sleep 1
|
||||||
}
|
}
|
||||||
|
|
||||||
service_running() {
|
service_running() {
|
||||||
|
@ -137,14 +138,6 @@ service_triggers()
|
||||||
procd_close_validate
|
procd_close_validate
|
||||||
}
|
}
|
||||||
|
|
||||||
restart() {
|
|
||||||
ifdown -a
|
|
||||||
sleep 1
|
|
||||||
trap '' TERM
|
|
||||||
stop "$@"
|
|
||||||
start "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
shutdown() {
|
shutdown() {
|
||||||
ifdown -a
|
ifdown -a
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in a new issue