treewide: remove ETHPORT leftovers
ETHPORT was used to configure devices with two physical ethernet ports, one of them being connected directly to the CPU, while the other one is connected to the internal switch of the platform. As the GL-AR150 has been converted to the TWO_PORT codepath and no other devices utilizes ETHPORT, remove all leftovers. Signed-off-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
37a34fb33c
commit
7c6a4f0acc
|
@ -11,7 +11,7 @@ if [ -s /etc/network.config ] ; then
|
|||
. /etc/network.config
|
||||
else
|
||||
# Write network.config
|
||||
if [ "$ONE_PORT" = "YES" ] || [ -n "$ETHPORT" ] ; then
|
||||
if [ "$ONE_PORT" = "YES" ] ; then
|
||||
echo "ETHMODE='$ETHMODE' # use BATMAN, CLIENT or WAN" >> /etc/network.config
|
||||
fi
|
||||
if [ -n "$TWO_PORT" ] ; then
|
||||
|
|
|
@ -221,7 +221,7 @@ if swconfig list | grep -q switch0 ; then
|
|||
done
|
||||
else
|
||||
echo "-> PORT ASSIGNMENT"
|
||||
if grep -q "ONE_PORT" "/etc/network.$board_name" || grep -q "ETHPORT" "/etc/network.$board_name" ; then
|
||||
if grep -q "ONE_PORT" "/etc/network.$board_name" ; then
|
||||
# Device has a port set by $ETHMODE
|
||||
. /etc/network.mode
|
||||
. /etc/network.config
|
||||
|
|
|
@ -151,7 +151,7 @@ format_port() {
|
|||
</fieldset>
|
||||
</td></tr>
|
||||
<% fi %>
|
||||
<% if grep -q "ONE_PORT" "/etc/network.$board_name" || grep -q "ETHPORT" "/etc/network.$board_name" ; then %>
|
||||
<% if grep -q "ONE_PORT" "/etc/network.$board_name" ; then %>
|
||||
<%
|
||||
# Device has a port set by $ETHMODE
|
||||
. /etc/network.mode
|
||||
|
|
Loading…
Reference in New Issue