From 2da93c7e152fc032920c62c6691ef4bd2315eb8f Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 19 Mar 2012 21:09:51 +0000 Subject: netifd: shut down all interfaces before restarting netifd git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31032 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/netifd/files/etc/init.d/netifd | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'package') diff --git a/package/netifd/files/etc/init.d/netifd b/package/netifd/files/etc/init.d/netifd index 348f16d4d..840083b61 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 } -- cgit v1.2.3