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 <gamerh2o@gmail.com>
SVN-Revision: 41000
# Copyright (C) 2009 OpenWrt.org
setup_switch_dev() {
# Copyright (C) 2009 OpenWrt.org
setup_switch_dev() {
config_get name "$1" name
name="${name:-$1}"
[ -d "/sys/class/net/$name" ] && ifconfig "$name" up
config_get name "$1" name
name="${name:-$1}"
[ -d "/sys/class/net/$name" ] && ifconfig "$name" up