projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
switch: the hardware must be up while configuring Since the removal of the interface...
[openwrt/staging/mkresin.git]
/
package
/
switch
/
files
/
switch.sh
diff --git
a/package/switch/files/switch.sh
b/package/switch/files/switch.sh
index 6517ca9853ce449e5e294b19937de6b433f3401e..2563d410e522ba0eca83804480d89313ab147ff9 100644
(file)
--- a/
package/switch/files/switch.sh
+++ b/
package/switch/files/switch.sh
@@
-11,6
+11,7
@@
setup_switch_hw() {
local proc="/proc/switch/$dev"
[ -d "$proc" ] && {
+ ifconfig "$dev" up
echo "$reset" > "$proc/reset"
echo "$evlan" > "$proc/enable_vlan"
[ -f "$proc/enable" ] && echo "$enable" > "$proc/enable"