projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
keep track of the network interface states (stored in uci format in /var/state/networ...
[openwrt.git]
/
package
/
base-files
/
files
/
sbin
/
ifdown
diff --git
a/package/base-files/files/sbin/ifdown
b/package/base-files/files/sbin/ifdown
index
8ec568f
..
f8ce81b
100755
(executable)
--- a/
package/base-files/files/sbin/ifdown
+++ b/
package/base-files/files/sbin/ifdown
@@
-10,6
+10,12
@@
config_load network
exit
}
+
+# remove the interface's network state
+FILE=/var/state/network.$$
+grep -v "^config_set '$1' " /var/state/network > "$FILE"
+mv "$FILE" /var/state/network
+
include /lib/network
scan_interfaces
This page took
0.021318 seconds
and
4
git commands to generate.