mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[package] base-files: save the connect time of interfaces in uci state
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24206 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0ab7f53ebf
commit
ba995b3296
@ -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"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user