aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/default/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-07-30 13:21:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-07-30 13:21:18 +0000
commit165859eefe99136ad60c25f328bb10612200c269 (patch)
treea324045a6a2e62a36e0343974d5069952c242ea8 /package/base-files/default/lib
parent9cfd8e590d358f0693419af7f078496274dd7f4a (diff)
downloadmaster-187ad058-165859eefe99136ad60c25f328bb10612200c269.tar.gz
master-187ad058-165859eefe99136ad60c25f328bb10612200c269.tar.bz2
master-187ad058-165859eefe99136ad60c25f328bb10612200c269.zip
fix more instances of '' abuse
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4326 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/default/lib')
-rwxr-xr-xpackage/base-files/default/lib/network/config.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/package/base-files/default/lib/network/config.sh b/package/base-files/default/lib/network/config.sh
index 59ec84aba8..76db09de15 100755
--- a/package/base-files/default/lib/network/config.sh
+++ b/package/base-files/default/lib/network/config.sh
@@ -4,11 +4,11 @@
# DEBUG="echo"
find_config() {
- local type iface ifn
+ local iftype iface ifn
for ifn in $interfaces; do
- config_get type "$ifn" type
+ config_get iftype "$ifn" type
config_get iface "$ifn" ifname
- case "$type" in
+ case "$iftype" in
bridge)
config_get iface "$ifn" ifnames
;;
@@ -25,15 +25,15 @@ find_config() {
}
scan_interfaces() {
- local mode type iface
+ local mode iftype iface
interfaces=
config_cb() {
- config_get type "$CONFIG_SECTION" TYPE
- case "$type" in
+ config_get iftype "$CONFIG_SECTION" TYPE
+ case "$iftype" in
interface)
- config_get type "$CONFIG_SECTION" type
+ config_get iftype "$CONFIG_SECTION" type
config_get mode "$CONFIG_SECTION" proto
- case "$type" in
+ case "$iftype" in
bridge)
config_get iface "$CONFIG_SECTION" ifname
iface="${iface:-br-$CONFIG_SECTION}"