projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
571bd15
)
netifd: shut down all interfaces before restarting netifd
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 19 Mar 2012 21:09:51 +0000
(21:09 +0000)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/package/netifd/files/etc/init.d/netifd
b/package/netifd/files/etc/init.d/netifd
index 348f16d4d8d4c641570bdfd6fe6753a1ea64067a..840083b61f8eab7cbc771eed1be24ef8dc85018a 100755
(executable)
--- 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
}