2
0
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:
Jo-Philipp Wich
2011-07-15 14:57:44 +00:00
parent 9ee12e3f62
commit e0e6d1029e
4 changed files with 10 additions and 10 deletions

View File

@@ -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"
}

View File

@@ -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