mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 02:34:06 +02:00
[package] base-files: cached state vars after scan_interfaces might be out of sync when binding dhcp leases, this could lead to an unconfigured wan interface in certain circumstances. Replace config_get calls with uci_get_state
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23091 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3d98699ef3
commit
835a68409c
@ -21,9 +21,9 @@ setup_interface () {
|
|||||||
local user_router
|
local user_router
|
||||||
|
|
||||||
[ -n "$ifc" ] && {
|
[ -n "$ifc" ] && {
|
||||||
config_get old_ip "$ifc" ipaddr
|
old_ip="$(uci_get_state network "$ifc" ipaddr)"
|
||||||
config_get old_broadcast "$ifc" broadcast
|
old_broadcast="$(uci_get_state network "$ifc" broadcast)"
|
||||||
config_get old_subnet "$ifc" netmask
|
old_subnet="$(uci_get_state network "$ifc" netmask)"
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "$ip" != "$old_ip" ] \
|
[ "$ip" != "$old_ip" ] \
|
||||||
|
Loading…
Reference in New Issue
Block a user