Author: blogic
Date: 2014-06-04 09:20:31 +0200 (Wed, 04 Jun 2014)
New Revision: 41000

Modified:
   trunk/package/network/config/swconfig/files/switch.sh
Log:
package: swconfig: let variable name be local

Let the first parameter of function config_get be local, because there
is a chance that config_get won't export the variable.

Signed-off-by: Zhao, Gang <[email protected]>

Modified: trunk/package/network/config/swconfig/files/switch.sh
===================================================================
--- trunk/package/network/config/swconfig/files/switch.sh       2014-06-04 
07:20:22 UTC (rev 40999)
+++ trunk/package/network/config/swconfig/files/switch.sh       2014-06-04 
07:20:31 UTC (rev 41000)
@@ -2,6 +2,7 @@
 # Copyright (C) 2009 OpenWrt.org
 
 setup_switch_dev() {
+       local name
        config_get name "$1" name
        name="${name:-$1}"
        [ -d "/sys/class/net/$name" ] && ifconfig "$name" up
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to