[package] base-files: use uci_get() wrapper (#7312)
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 17 May 2010 19:34:08 +0000 (19:34 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 17 May 2010 19:34:08 +0000 (19:34 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21490 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/hotplug.d/net/10-net
package/base-files/files/usr/share/udhcpc/default.script

index ef59004..42ff29e 100644 (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"
index b32b2c9..ceabf4b 100755 (executable)
@@ -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
This page took 0.026835 seconds and 4 git commands to generate.