X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3c77e53b3f8496c8038f5d7f518451fe7eadd4da..51c76d8aa5224233370fa5de9cc1277f5a797a66:/package/base-files/files/etc/hotplug.d/iface/00-netstate 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..03285de18 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,4 @@ [ ifup = "$ACTION" ] && { - uci set "/var/state/network.$INTERFACE.up=1" + uci_set_state network "$INTERFACE" up 1 + [ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE" }