for ifc in $interfaces; do
config_get iftype "$ifc" type
config_get ifs "$ifc" device
for ifc in $interfaces; do
config_get iftype "$ifc" type
config_get ifs "$ifc" device
- confdevs="$(uci get network.$ifc.ifname)"
+ confdevs="$(uci_get network.$ifc.ifname)"
for dev in $ifs; do
[ "${dev%%\.*}" = "$INTERFACE" ] && {
list_contains confdevs "$dev" || list_remove ifs "$dev"
for dev in $ifs; do
[ "${dev%%\.*}" = "$INTERFACE" ] && {
list_contains confdevs "$dev" || list_remove ifs "$dev"
uci_set_state "$1" "$2" "$3" "$4"
}
uci_set_state "$1" "$2" "$3" "$4"
}
-uci_get() {
- [ -n "$ifc" ] || return
- uci -P /dev/null get "$1" 2>/dev/null
-}
-
setup_interface () {
local old_ip
local old_broadcast
setup_interface () {
local old_ip
local old_broadcast