ath79: kernel: Add missing quote to drivers/mfd/Kconfig
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / lib / preinit / 07_mt7621_bringup_dsa_master
1 . /lib/functions.sh
2
3 mt7621_bringup_dsa_master() {
4 local board=$(board_name)
5 local masterif
6
7 case "$board" in
8 ubnt,edgerouter-x|\
9 ubnt,edgerouter-x-sfp)
10 masterif="dsa"
11 ;;
12 *)
13 masterif="eth0"
14 ;;
15 esac
16
17 ip link set $masterif up
18 }
19
20 boot_hook_add preinit_main mt7621_bringup_dsa_master