mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-03-03 20:23:55 +00:00
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 fb1ba92202
)
This commit is contained in:
parent
dbd4c345fb
commit
59e1b59bb3
@ -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
|
Loading…
Reference in New Issue
Block a user