2
0
Эх сурвалжийг харах

netifd: shut down all interfaces before restarting netifd

SVN-Revision: 31032
Felix Fietkau 13 жил өмнө
parent
commit
6a30a0d992

+ 7 - 0
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
 }