netifd: make type a local variable in /lib/network/config.sh to avoid clashes with...
authorFelix Fietkau <nbd@openwrt.org>
Sat, 21 Apr 2012 20:34:41 +0000 (20:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 21 Apr 2012 20:34:41 +0000 (20:34 +0000)
SVN-Revision: 31430

package/netifd/files/lib/network/config.sh

index 8fa9b1ac3dd6354e4f82b747b349ffc2e22ed16e..287124de66312e7fb972e70855fe0181780c7a61 100755 (executable)
@@ -36,7 +36,7 @@ ubus_call() {
 
 fixup_interface() {
        local config="$1"
-       local ifname
+       local ifname type
 
        config_get type "$config" type
        config_get ifname "$config" ifname