summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpackage/netifd/files/etc/init.d/netifd7
1 files changed, 7 insertions, 0 deletions
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
}