[package] base-files: utilize uci_get_state to read the previous dhcp router address...
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 4 Oct 2010 00:07:07 +0000 (00:07 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 4 Oct 2010 00:07:07 +0000 (00:07 +0000)
commit72a89f6d9e9b2bed9faa0f6560ddc11f551b86c4
treea31c040c682abac8c4fa725e3fa27e12c5601380
parent95773d8fb6672d7cf35c30772761402cd88259bd
[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.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23211 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/Makefile
package/base-files/files/usr/share/udhcpc/default.script