aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-20 10:49:33 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-23 16:26:23 +0100
commit942ac18c8a6d7dbe9ad3b4ac9ef06cbd891ad954 (patch)
tree84ef821c8dc885f94eb877d40a33e2263b9b830a
parentb8ea9efc5871b0b00b5783817b6c913d8782315e (diff)
downloadupstream-942ac18c8a6d7dbe9ad3b4ac9ef06cbd891ad954.tar.gz
upstream-942ac18c8a6d7dbe9ad3b4ac9ef06cbd891ad954.tar.bz2
upstream-942ac18c8a6d7dbe9ad3b4ac9ef06cbd891ad954.zip
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>
-rwxr-xr-xpackage/network/config/netifd/files/etc/init.d/network13
1 files changed, 3 insertions, 10 deletions
diff --git a/package/network/config/netifd/files/etc/init.d/network b/package/network/config/netifd/files/etc/init.d/network
index bdadbbce6d..a825dfd31f 100755
--- 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