aboutsummaryrefslogtreecommitdiffstats
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
commitc133369698e6fa693bfb3d827fb56a1d370dd6b8 (patch)
tree9695862249bb0665f1ca7841515d4187175a3a81 /package
parentc1339030e15c317ce695092de4faad4c0db8b342 (diff)
downloadupstream-c133369698e6fa693bfb3d827fb56a1d370dd6b8.tar.gz
upstream-c133369698e6fa693bfb3d827fb56a1d370dd6b8.tar.bz2
upstream-c133369698e6fa693bfb3d827fb56a1d370dd6b8.zip
netifd: shut down all interfaces before restarting netifd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31032 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 348f16d4d8..840083b61f 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
}