aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-05-28 14:32:08 +0200
committerPaul Spooren <mail@aparcar.org>2022-06-02 12:18:56 +0200
commit59e1b59bb327cd5c5c617a52b30841150da1ea5e (patch)
tree628f1ae28fbd4e4f0fdc260d282d643e2d3b5392 /target/linux
parentdbd4c345fbdea1775e7bd17184f10c0e587071d6 (diff)
downloadupstream-59e1b59bb327cd5c5c617a52b30841150da1ea5e.tar.gz
upstream-59e1b59bb327cd5c5c617a52b30841150da1ea5e.tar.bz2
upstream-59e1b59bb327cd5c5c617a52b30841150da1ea5e.zip
malta: use default OpenWrt network configuration
Currently malta configures the first Ethernet device as WAN interface. If it finds a second one it will configure it as LAN. This commit reverses it to match armvirt and x86. If there is only one network device it will be configured as LAN device now. If we find two network devices the 2. one will be WAN. If no board.d network configuration is given it will be configured in package/base-files/files/etc/board.d/99-default_network Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [minor typos] Signed-off-by: Paul Spooren <mail@aparcar.org> (cherry picked from commit fb1ba922026a4b7d04ef5c8058f7890ed7b790e6)
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/malta/base-files/etc/board.d/02_network13
1 files changed, 0 insertions, 13 deletions
diff --git a/target/linux/malta/base-files/etc/board.d/02_network b/target/linux/malta/base-files/etc/board.d/02_network
deleted file mode 100644
index 4a711c253e..0000000000
--- a/target/linux/malta/base-files/etc/board.d/02_network
+++ /dev/null
@@ -1,13 +0,0 @@
-
-. /lib/functions/uci-defaults.sh
-
-board_config_update
-
-ucidef_set_interface_wan "eth0"
-if [ -d "/sys/class/net/eth1" ]; then
- ucidef_set_interface_lan "eth1"
-fi
-
-board_config_flush
-
-exit 0