summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/usr/share
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/usr/share')
-rwxr-xr-xpackage/base-files/files/usr/share/udhcpc/default.script4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files/files/usr/share/udhcpc/default.script
index 92e3474bd..708f84783 100755
--- a/package/base-files/files/usr/share/udhcpc/default.script
+++ b/package/base-files/files/usr/share/udhcpc/default.script
@@ -41,8 +41,8 @@ setup_interface () {
# Default Route
[ -n "$ifc" ] && {
change_state network "$ifc" lease_gateway "$router"
- config_get old_router "$ifc" gateway
- user_router=$(uci_get "network.$ifc.gateway")
+ old_router="$(uci_get_state network "$ifc" gateway)"
+ user_router="$(uci_get network "$ifc" gateway)"
[ -n "$user_router" ] && router="$user_router"
}