diff options
Diffstat (limited to 'package/base-files/files/etc/hotplug.d/iface')
-rw-r--r-- | package/base-files/files/etc/hotplug.d/iface/00-netstate | 2 | ||||
-rw-r--r-- | package/base-files/files/etc/hotplug.d/iface/10-routes | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/package/base-files/files/etc/hotplug.d/iface/00-netstate b/package/base-files/files/etc/hotplug.d/iface/00-netstate index 6bf621437..f215d29b5 100644 --- a/package/base-files/files/etc/hotplug.d/iface/00-netstate +++ b/package/base-files/files/etc/hotplug.d/iface/00-netstate @@ -1,3 +1,3 @@ [ ifup = "$ACTION" ] && { - uci set "/var/state/network.$INTERFACE.up=1" + uci_set_state network "$INTERFACE" up 1 } diff --git a/package/base-files/files/etc/hotplug.d/iface/10-routes b/package/base-files/files/etc/hotplug.d/iface/10-routes index 7e957f7f1..963728faf 100644 --- a/package/base-files/files/etc/hotplug.d/iface/10-routes +++ b/package/base-files/files/etc/hotplug.d/iface/10-routes @@ -63,7 +63,6 @@ case "$ACTION" in ifup) include /lib/network scan_interfaces - . /var/state/network config_foreach "add_route" route config_foreach "add_route6" route6 ;; |