base-files: utilize uci_get_state to read the previous dhcp router address in udhcpc...
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)
commit0fda5f750739ac512b6522575ab3fd6b257af387
tree5f71eee45695bafe9b3178e6e61cc8c0a4eb8d13
parent7eb2c8959cec9160969468653623f3c0c9aa0f54
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