[package] base-files: utilize uci_get_state to read the previous dhcp router address...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 4 Oct 2010 00:07:07 +0000 (00:07 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 4 Oct 2010 00:07:07 +0000 (00:07 +0000)
commit8bc620d0a349d360460e540342c1dd9bbd52fe64
treea31c040c682abac8c4fa725e3fa27e12c5601380
parent8aa102c6b82830306c03172febeeb7acb4764a5d
[package] base-files: utilize uci_get_state to read the previous dhcp router address in udhcpc default script.
The setup_switch() procedure provided by swconfig calls config_load() during network restart and thus confuses
udhcpc's uci state keeping resulting in a missing default route on each second network restart. Bypass the
cached state vars and query uci directly to make the script immune against unwanted runtime changes.

SVN-Revision: 23211
package/base-files/Makefile
package/base-files/files/usr/share/udhcpc/default.script