1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

keep track of the network interface states (stored in uci format in /var/state/network, overlay over /etc/config/network)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7643 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2007-06-16 00:01:33 +00:00
parent 482f2d1ecc
commit 46da140988
7 changed files with 53 additions and 8 deletions

View File

@@ -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