36 lines
628 B
Plaintext
36 lines
628 B
Plaintext
set_preinit_iface() {
|
|
case $(board_name) in
|
|
smartrg,sdg-8622|\
|
|
smartrg,sdg-8632)
|
|
ip link set lan up
|
|
ifname=lan
|
|
;;
|
|
glinet,gl-mt3000)
|
|
ip link set eth1 up
|
|
ifname=eth1
|
|
;;
|
|
cudy,re3000-v1|\
|
|
ubnt,unifi-6-lr|\
|
|
zyxel,nwa50ax-pro)
|
|
ip link set eth0 up
|
|
ifname=eth0
|
|
;;
|
|
xiaomi,mi-router-ax3000t|\
|
|
xiaomi,mi-router-ax3000t-ubootmod|\
|
|
xiaomi,mi-router-wr30u-stock|\
|
|
xiaomi,mi-router-wr30u-ubootmod|\
|
|
xiaomi,redmi-router-ax6000-stock|\
|
|
xiaomi,redmi-router-ax6000-ubootmod)
|
|
ip link set eth0 up
|
|
ifname=lan4
|
|
;;
|
|
*)
|
|
ip link set eth0 up
|
|
ifname=lan1
|
|
;;
|
|
esac
|
|
}
|
|
|
|
boot_hook_add preinit_main set_preinit_iface
|
|
|