projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87e021e
)
netifd: fix stopping netifd + interfaces
author
Felix Fietkau
<nbd@nbd.name>
Mon, 20 Feb 2017 09:49:33 +0000
(10:49 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Wed, 1 Mar 2017 19:37:37 +0000
(20:37 +0100)
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>
package/network/config/netifd/files/etc/init.d/network
patch
|
blob
|
history
diff --git
a/package/network/config/netifd/files/etc/init.d/network
b/package/network/config/netifd/files/etc/init.d/network
index bdadbbce6db6f9383a0e2c7fab25e7f5d8823091..a825dfd31fbc805feae2ede556ddef7f728dfb72 100755
(executable)
--- a/
package/network/config/netifd/files/etc/init.d/network
+++ b/
package/network/config/netifd/files/etc/init.d/network
@@
-31,9
+31,10
@@
reload_service() {
/sbin/wifi reload_legacy
}
-stop() {
+stop
_service
() {
/sbin/wifi down
- procd_kill network ''
+ ifdown -a
+ sleep 1
}
service_running() {
@@
-137,14
+138,6
@@
service_triggers()
procd_close_validate
}
-restart() {
- ifdown -a
- sleep 1
- trap '' TERM
- stop "$@"
- start "$@"
-}
-
shutdown() {
ifdown -a
sleep 1