2007-06-16 00:01:33 +00:00
|
|
|
[ ifup = "$ACTION" ] && {
|
2008-02-03 06:48:15 +00:00
|
|
|
uci_set_state network "$INTERFACE" up 1
|
2010-12-01 19:55:24 +00:00
|
|
|
uci_set_state network "$INTERFACE" connect_time $(sed -ne 's![^0-9].*$!!p' /proc/uptime)
|
2008-11-28 16:18:11 +00:00
|
|
|
[ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE"
|
2007-06-16 00:01:33 +00:00
|
|
|
}
|