base-files: use uci_get() wrapper (#7312)

SVN-Revision: 21490
This commit is contained in:
Jo-Philipp Wich 2010-05-17 19:34:08 +00:00
parent 6efb515be1
commit ea06a67eac
2 changed files with 1 additions and 6 deletions

View file

@ -46,7 +46,7 @@ delif() {
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"

View file

@ -11,11 +11,6 @@ change_state () {
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