From a8c3d1ab6d33244965224b8bb7e43bdb55d28c80 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 1 Dec 2010 17:37:32 +0000 Subject: [PATCH] base-files: save the connect time of interfaces in uci state SVN-Revision: 24206 --- package/base-files/files/etc/hotplug.d/iface/00-netstate | 1 + 1 file changed, 1 insertion(+) 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 03285de18ffe..a10d871dc417 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 $(date +%s) [ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE" } -- 2.30.2