12345678910111213141516171819 |
- set_preinit_iface() {
- case $(board_name) in
- glinet,gl-mt3000)
- ip link set eth1 up
- ifname=eth1
- ;;
- ubnt,unifi-6-lr)
- ip link set eth0 up
- ifname=eth0
- ;;
- *)
- ip link set eth0 up
- ifname=lan1
- ;;
- esac
- }
- boot_hook_add preinit_main set_preinit_iface
|