projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63b3537
)
package: swconfig: let variable name be local
author
John Crispin
<blogic@openwrt.org>
Wed, 4 Jun 2014 07:20:31 +0000
(07:20 +0000)
committer
John Crispin
<blogic@openwrt.org>
Wed, 4 Jun 2014 07:20:31 +0000
(07:20 +0000)
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41000
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/network/config/swconfig/files/switch.sh
patch
|
blob
|
history
diff --git
a/package/network/config/swconfig/files/switch.sh
b/package/network/config/swconfig/files/switch.sh
index
18d5fbd
..
ba6924d
100644
(file)
--- a/
package/network/config/swconfig/files/switch.sh
+++ b/
package/network/config/swconfig/files/switch.sh
@@
-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