netifd: shut down all interfaces before restarting netifd
authorFelix Fietkau <nbd@openwrt.org>
Mon, 19 Mar 2012 21:09:51 +0000 (21:09 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 19 Mar 2012 21:09:51 +0000 (21:09 +0000)
SVN-Revision: 31032

package/netifd/files/etc/init.d/netifd

index 348f16d4d8d4c641570bdfd6fe6753a1ea64067a..840083b61f8eab7cbc771eed1be24ef8dc85018a 100755 (executable)
@@ -15,6 +15,13 @@ start() {
        sleep 1
 }
 
+restart() {
+       ifdown -a
+       sleep 1
+       stop
+       start
+}
+
 stop() {
        service_stop /sbin/netifd
 }