diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-19 15:04:08 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-19 15:04:08 +0000 |
commit | 84b7b812f31a1cefcd29c5571e8da2b7792a2e8f (patch) | |
tree | ebf44d1d687386328a14c2101675a5f224cc24f7 /package/base-files/files/usr/share/udhcpc | |
parent | b07620df310e20f2031eb95f4185884eae826d0d (diff) | |
download | upstream-84b7b812f31a1cefcd29c5571e8da2b7792a2e8f.tar.gz upstream-84b7b812f31a1cefcd29c5571e8da2b7792a2e8f.tar.bz2 upstream-84b7b812f31a1cefcd29c5571e8da2b7792a2e8f.zip |
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
SVN-Revision: 23091
Diffstat (limited to 'package/base-files/files/usr/share/udhcpc')
-rwxr-xr-x | package/base-files/files/usr/share/udhcpc/default.script | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script index 39527778ad..92e3474bdd 100755 --- a/package/base-files/files/usr/share/udhcpc/default.script +++ b/package/base-files/files/usr/share/udhcpc/default.script @@ -21,9 +21,9 @@ setup_interface () { local user_router [ -n "$ifc" ] && { - config_get old_ip "$ifc" ipaddr - config_get old_broadcast "$ifc" broadcast - config_get old_subnet "$ifc" netmask + old_ip="$(uci_get_state network "$ifc" ipaddr)" + old_broadcast="$(uci_get_state network "$ifc" broadcast)" + old_subnet="$(uci_get_state network "$ifc" netmask)" } [ "$ip" != "$old_ip" ] \ |