mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
port-management: remove unused functions
This commit is contained in:
parent
08c542cf6f
commit
1fd62bbfa2
1 changed files with 2 additions and 15 deletions
|
|
@ -16,9 +16,9 @@ populate_config(){
|
|||
local portorder="$(db -q get hw.board.ethernetPortOrder)"
|
||||
for port in $portorder; do
|
||||
uci add ports ethport
|
||||
uci rename ports.@ethport[-1]="$(interfacename $port)"
|
||||
uci rename ports.@ethport[-1]="$(get_port_name $port)"
|
||||
uci set ports.@ethport[-1].enabled=1
|
||||
uci set ports.@ethport[-1].name="$(interfacename $port)"
|
||||
uci set ports.@ethport[-1].name="$(get_port_name $port)"
|
||||
uci set ports.@ethport[-1].ifname="$port"
|
||||
uci set ports.@ethport[-1].speed=1000
|
||||
uci set ports.@ethport[-1].duplex="full"
|
||||
|
|
@ -32,19 +32,6 @@ populate_config(){
|
|||
fi
|
||||
done
|
||||
|
||||
local fiberorder="$(db -q get hw.board.fiberPortOrder)"
|
||||
for fiber in $fiberorder; do
|
||||
uci add ports sfpport
|
||||
uci rename ports.@sfpport[-1]="$(fibername $fiber)"
|
||||
uci set ports.@sfpport[-1].enabled=1
|
||||
uci set ports.@sfpport[-1].name="$(fibername $fiber)"
|
||||
uci set ports.@sfpport[-1].ifname="$fiber"
|
||||
uci set ports.@sfpport[-1].speed=1000
|
||||
uci set ports.@sfpport[-1].duplex="full"
|
||||
uci set ports.@sfpport[-1].autoneg=1
|
||||
uci set ports.@sfpport[-1].eee=0
|
||||
done
|
||||
|
||||
uci commit ports
|
||||
|
||||
[ $DEBUG ] && cat /etc/config/ports
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue