issue switch reset when bringing up the ethernet device
SVN-Revision: 3047
This commit is contained in:
parent
55655a5081
commit
cc13c60980
2 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ setup_eth()
|
|||
if="$(echo "$INTERFACE" | sed s,eth,et,)"
|
||||
ifconfig "$INTERFACE" up 2>&- >&-
|
||||
[ -d "/proc/switch/$INTERFACE" ] || return 0
|
||||
echo "1" > "/proc/switch/$INTERFACE/reset"
|
||||
echo "1" > "/proc/switch/$INTERFACE/enable_vlan"
|
||||
for vlan in $(seq 0 15); do
|
||||
[ "$(nvram get vlan${vlan}hwname)" = "$if" ] && {
|
||||
|
|
|
@ -11,6 +11,7 @@ setup_eth()
|
|||
if="$(echo "$INTERFACE" | sed s,eth,et,)"
|
||||
ifconfig "$INTERFACE" up 2>&- >&-
|
||||
[ -d "/proc/switch/$INTERFACE" ] || return 0
|
||||
echo "1" > "/proc/switch/$INTERFACE/reset"
|
||||
echo "1" > "/proc/switch/$INTERFACE/enable_vlan"
|
||||
for vlan in $(seq 0 15); do
|
||||
[ "$(nvram get vlan${vlan}hwname)" = "$if" ] && {
|
||||
|
|
Loading…
Reference in a new issue