forked from Ivasoft/openwrt
base-files: use uci_toggle_state() to prevent unwanted aggregation of state vars (#9711)
SVN-Revision: 27616
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ case "$ACTION" in
|
||||
# Save alias references in state vars
|
||||
local aliases
|
||||
config_get aliases "$INTERFACE" aliases
|
||||
[ -z "$aliases" ] || uci_set_state network "$INTERFACE" aliases "$aliases"
|
||||
[ -z "$aliases" ] || uci_toggle_state network "$INTERFACE" aliases "$aliases"
|
||||
|
||||
# Make ip6addr of parent iface the main address again
|
||||
local ip6addr
|
||||
|
||||
Reference in New Issue
Block a user