treewide: remove execute bit and shebang from board.d files
[openwrt/staging/rmilecki.git] / target / linux / mediatek / mt7629 / base-files / etc / board.d / 02_network
1
2 . /lib/functions.sh
3 . /lib/functions/uci-defaults.sh
4 . /lib/functions/system.sh
5
6 mediatek_setup_interfaces()
7 {
8 local board="$1"
9
10 case $board in
11 mediatek,mt7629-rfb)
12 ucidef_set_interface_wan "eth1"
13 ucidef_add_switch "switch0" \
14 "0:lan" "1:lan" "2:lan" "3:lan" "6@eth0"
15 ;;
16 esac
17 }
18
19 mediatek_setup_macs()
20 {
21 local board="$1"
22
23 case $board in
24 esac
25 }
26
27 board_config_update
28 board=$(board_name)
29 mediatek_setup_interfaces $board
30 mediatek_setup_macs $board
31 board_config_flush
32
33 exit 0