mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
port-management: set uplink for wan port by default
This commit is contained in:
parent
ae406ee1eb
commit
3475bc4aba
1 changed files with 2 additions and 1 deletions
|
|
@ -26,9 +26,10 @@ check_for_config(){
|
|||
uci set ports.@ethport[-1].name="$(interfacename $port)"
|
||||
uci set ports.@ethport[-1].ifname=$port
|
||||
uci set ports.@ethport[-1].speed='auto'
|
||||
if [ "$(interfacename $port)" = "WAN" ]
|
||||
if [ "$(db -q get hw.board.ethernetWanPort)" = "$port" ]
|
||||
then
|
||||
uci set ports.@ethport[-1].pause=1
|
||||
uci set ports.@ethport[-1].uplink=1
|
||||
else
|
||||
uci set ports.@ethport[-1].pause=0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue