mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
enable pause frames on wan port only
This commit is contained in:
parent
a1317950f0
commit
ad080245e6
1 changed files with 4 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ addethernet() {
|
|||
}
|
||||
|
||||
boot() {
|
||||
local $baseifname
|
||||
local baseifname wanport portnum
|
||||
config_load layer2_interface_ethernet
|
||||
config_get baseifname Wan baseifname
|
||||
|
||||
|
|
@ -65,7 +65,9 @@ boot() {
|
|||
if [ "$tm" == "1" ]; then
|
||||
for interf in `db get hw.board.ethernetPortOrder`; do tmctl porttminit --devtype ETH --if $interf --flag 1 ; done
|
||||
fi
|
||||
ethswctl -c pause -p 8 -v 1
|
||||
wanport=$(db get hw.board.ethernetWanPort)
|
||||
portnum=$(get_port_number $wanport)
|
||||
ethswctl -c pause -p $portnum -v 1
|
||||
ethswctl -c hw-switching -o enable
|
||||
if [ $baseifname ]; then
|
||||
ethswctl -c wan -i $baseifname -o enable
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue