projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
package: swconfig: let variable name be local
[openwrt/openwrt.git]
/
package
/
network
/
config
/
swconfig
/
files
/
switch.sh
diff --git
a/package/network/config/swconfig/files/switch.sh
b/package/network/config/swconfig/files/switch.sh
index 18d5fbd2c3d58f356e6f9ceec86ebc2caf38b757..ba6924d9d21d16f134c078187e554de860b5f6cc 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