projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ramips: add support for the ARC FreeStation5 board, also fix WCR-150GN network setup...
[openwrt.git]
/
package
/
swconfig
/
files
/
switch.sh
diff --git
a/package/swconfig/files/switch.sh
b/package/swconfig/files/switch.sh
index
d752b13
..
18d5fbd
100644
(file)
--- a/
package/swconfig/files/switch.sh
+++ b/
package/swconfig/files/switch.sh
@@
-2,7
+2,10
@@
# Copyright (C) 2009 OpenWrt.org
setup_switch_dev() {
- swconfig dev "$1" load network
+ config_get name "$1" name
+ name="${name:-$1}"
+ [ -d "/sys/class/net/$name" ] && ifconfig "$name" up
+ swconfig dev "$name" load network
}
setup_switch() {
This page took
0.023781 seconds
and
4
git commands to generate.