netifd: shut down all interfaces before restarting netifd

SVN-Revision: 31032
lede-17.01
Felix Fietkau 2012-03-19 21:09:51 +00:00
parent 571bd159a1
commit 6a30a0d992
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,13 @@ start() {
sleep 1
}
restart() {
ifdown -a
sleep 1
stop
start
}
stop() {
service_stop /sbin/netifd
}