X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a0accd105e104b94d6d6aab243040da02fee4167..d08b885a8adf1e9c78e7b78fbb2dbd7830ad557f:/package/base-files/files/etc/hotplug.d/iface/00-netstate?ds=sidebyside 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 03285de18..e2e58456b 100644 --- a/package/base-files/files/etc/hotplug.d/iface/00-netstate +++ b/package/base-files/files/etc/hotplug.d/iface/00-netstate @@ -1,4 +1,5 @@ [ ifup = "$ACTION" ] && { uci_set_state network "$INTERFACE" up 1 + uci_set_state network "$INTERFACE" connect_time $(sed -ne 's![^0-9].*$!!p' /proc/uptime) [ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE" }