From: Felix Fietkau Date: Mon, 19 Mar 2012 21:09:51 +0000 (+0000) Subject: netifd: shut down all interfaces before restarting netifd X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6a30a0d9928cf8a3f149c5134693d9eb258c3378;p=openwrt%2Fstaging%2Fblocktrron.git netifd: shut down all interfaces before restarting netifd SVN-Revision: 31032 --- 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 }