Currently the erlite install shows Model as EBNT_E100, uses eth0 as lan, eth1 as wan, and doesn't use eth2. - define dts for this device, such that we get a cleaner naming here - fix handing of this device to inlude eth2 - change eth0 to wan, like er-4/usg/etc as it once was intended Fixes: https://github.com/openwrt/openwrt/issues/14946 Signed-off-by: Fabian Groffen <grobian@gentoo.org> Link: https://github.com/openwrt/openwrt/pull/17758 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
31 lines
540 B
Text
31 lines
540 B
Text
#
|
|
# Copyright (C) 2014-2025 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
case "$(board_name)" in
|
|
itus,shield-router|\
|
|
ubnt,erlite|\
|
|
ubnt,usg)
|
|
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
|
|
;;
|
|
ubnt,edgerouter-4)
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "lan0"
|
|
;;
|
|
ubnt,edgerouter-6p)
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" "lan0"
|
|
;;
|
|
cisco,vedge1000)
|
|
ucidef_set_interfaces_lan_wan "mgmt0" "lan0"
|
|
;;
|
|
*)
|
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|