base-files: use uci_toggle_state() to prevent unwanted aggregation of state vars (#9711)
SVN-Revision: 27616master
parent
9ee12e3f62
commit
e0e6d1029e
@ -1,5 +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" |
||||
uci_toggle_state network "$INTERFACE" up 1 |
||||
uci_toggle_state network "$INTERFACE" connect_time $(sed -ne 's![^0-9].*$!!p' /proc/uptime) |
||||
[ -n "$DEVICE" ] && uci_toggle_state network "$INTERFACE" ifname "$DEVICE" |
||||
} |
||||
|
Loading…
Reference in new issue