From a8c3d1ab6d33244965224b8bb7e43bdb55d28c80 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 1 Dec 2010 17:37:32 +0000 Subject: 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(+) (limited to 'package/base-files/files/etc') 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 03285de18f..a10d871dc4 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" } -- cgit v1.2.3