summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-19 21:09:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-19 21:09:51 +0000
commit6a30a0d9928cf8a3f149c5134693d9eb258c3378 (patch)
treed63a30476b53c9735222f8694b558a6baee6593d /package
parent571bd159a1f45d7ccf79332c8be1ae8b8b8e499d (diff)
downloadmtk-20170518-6a30a0d9928cf8a3f149c5134693d9eb258c3378.zip
mtk-20170518-6a30a0d9928cf8a3f149c5134693d9eb258c3378.tar.gz
mtk-20170518-6a30a0d9928cf8a3f149c5134693d9eb258c3378.tar.bz2
netifd: shut down all interfaces before restarting netifd
SVN-Revision: 31032
Diffstat (limited to 'package')
-rwxr-xr-xpackage/netifd/files/etc/init.d/netifd7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/netifd/files/etc/init.d/netifd b/package/netifd/files/etc/init.d/netifd
index 348f16d..840083b 100755
--- a/package/netifd/files/etc/init.d/netifd
+++ b/package/netifd/files/etc/init.d/netifd
@@ -15,6 +15,13 @@ start() {
sleep 1
}
+restart() {
+ ifdown -a
+ sleep 1
+ stop
+ start
+}
+
stop() {
service_stop /sbin/netifd
}