From: nbd Date: Mon, 19 Mar 2012 21:09:51 +0000 (+0000) Subject: netifd: shut down all interfaces before restarting netifd X-Git-Tag: fast2504n-3.10.28-merged~6611 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=2da93c7e152fc032920c62c6691ef4bd2315eb8f;p=openwrt.git netifd: shut down all interfaces before restarting netifd git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31032 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 }