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

SVN-Revision: 7643
This commit is contained in:
Felix Fietkau
2007-06-16 00:01:33 +00:00
parent 8e2643a8b5
commit 4f16e9cc3e
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