mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-17 17:14:43 +02:00
fix a few issues with dynamically assigned interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8765 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
82b6ff28f0
commit
5668f2ec21
@ -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…
x
Reference in New Issue
Block a user