From: Felix Fietkau Date: Mon, 20 Feb 2017 09:49:33 +0000 (+0100) Subject: netifd: fix stopping netifd + interfaces X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=df041b65200cc4c9d989164de51f9c058e8d272f;p=openwrt%2Fstaging%2Frmilecki.git 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 --- diff --git a/package/network/config/netifd/files/etc/init.d/network b/package/network/config/netifd/files/etc/init.d/network index bdadbbce6db..a825dfd31fb 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