mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-16 04:03:56 +02:00
The "proper" vendor prefix for Ubiquiti is "ubnt", this is used in all targets except ramips and also recommended by the kernel. This patch adjusts the various board/image/device name variables accordingly. Since we touch it anyway, this also adds the space in "EdgeRouter X" as a hyphen to those variables to really make them consistent with the model name. While at it, create a real shared definition for the devices in image/mt7621.mk instead of deriving one device from another. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
22 lines
351 B
Bash
22 lines
351 B
Bash
#!/bin/sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
mt7621_bringup_dsa_master() {
|
|
local board=$(board_name)
|
|
local masterif
|
|
|
|
case "$board" in
|
|
ubnt,edgerouter-x|\
|
|
ubnt,edgerouter-x-sfp)
|
|
masterif="dsa"
|
|
;;
|
|
*)
|
|
masterif="eth0"
|
|
;;
|
|
esac
|
|
|
|
ifconfig $masterif up
|
|
}
|
|
|
|
boot_hook_add preinit_main mt7621_bringup_dsa_master |