mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:01:52 +02:00
[package] base-files: use uci_get() wrapper (#7312)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21490 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
87d2c42246
commit
6a7755ee8f
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user