fix a few issues with dynamically assigned interfaces
SVN-Revision: 8765
This commit is contained in:
parent
64f9a22679
commit
f7ff1d6d0f
2 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,8 @@
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config_load /var/state/network
|
||||||
|
|
||||||
# remove the interface's network state
|
# remove the interface's network state
|
||||||
FILE=/var/state/network.$$
|
FILE=/var/state/network.$$
|
||||||
grep -v "^config_set '$1' " /var/state/network > "$FILE"
|
grep -v "^config_set '$1' " /var/state/network > "$FILE"
|
||||||
|
|
|
@ -7,6 +7,7 @@ RESOLV_CONF="/tmp/resolv.conf.auto"
|
||||||
|
|
||||||
hotplug_event() {
|
hotplug_event() {
|
||||||
scan_interfaces
|
scan_interfaces
|
||||||
|
config_load /var/state/network
|
||||||
for ifc in $interfaces; do
|
for ifc in $interfaces; do
|
||||||
config_get ifname $ifc ifname
|
config_get ifname $ifc ifname
|
||||||
[ "$ifname" = "$interface" ] || continue
|
[ "$ifname" = "$interface" ] || continue
|
||||||
|
|
Loading…
Reference in a new issue