diff options
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/usr/share/udhcpc/default.script | 4 |
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 92e3474bdd..708f847839 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" } |