summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-02-20 10:49:33 +0100
committerJo-Philipp Wich <jo@mein.io>2017-03-01 20:37:37 +0100
commitdf041b65200cc4c9d989164de51f9c058e8d272f (patch)
tree92b765a7fd7a3a16a8e6a4734ef70583c0859f1a
parent87e021e6e3eecb8dcaf1e38d5f63264629696743 (diff)
downloadmtk-20170518-df041b65200cc4c9d989164de51f9c058e8d272f.zip
mtk-20170518-df041b65200cc4c9d989164de51f9c058e8d272f.tar.gz
mtk-20170518-df041b65200cc4c9d989164de51f9c058e8d272f.tar.bz2
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 bdadbbc..a825dfd 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