fff-network: Do not configure switch for ONE and TWO_PORT devices #225

Closed
fbl wants to merge 1 commits from fbl:fixup-confnet into master
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ if [ "$DSA" = "1" ]; then
set network.${SWITCHDEV}_2.ports="$WAN_PORTS"
__EOF__
fi
elif [ -n "$SWITCHHW" ]; then
elif [ -n "$SWITCHHW" ] && [ -z "$ONE_PORT" ] && [ -z "$TWO_PORT" ]; then
uci batch <<-__EOF__
set network.$SWITCHDEV=switch
set network.$SWITCHDEV.name=$SWITCHHW