treewide: remove execute bit and shebang from board.d files
[openwrt/staging/rmilecki.git] / target / linux / lantiq / falcon / base-files / etc / board.d / 02_network
1 #
2 # Copyright (C) 2011-2015 OpenWrt.org
3 #
4
5 . /lib/functions/uci-defaults.sh
6 . /lib/functions/system.sh
7 . /lib/functions/lantiq.sh
8
9 lantiq_setup_interfaces()
10 {
11 local board="$1"
12
13 case "$board" in
14 *)
15 ucidef_set_interface_lan 'eth0'
16 ;;
17 esac
18 }
19
20 lantiq_setup_dsl()
21 {
22 local board="$1"
23 local annex="a"
24
25 case "$board" in
26 esac
27
28 lantiq_setup_dsl_helper "$annex"
29 }
30
31 lantiq_setup_macs()
32 {
33 local board="$1"
34 local lan_mac=""
35 local wan_mac=""
36
37 case "$board" in
38 esac
39
40 [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
41 [ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" "$wan_mac"
42 }
43
44 board_config_update
45 board=$(board_name)
46 lantiq_setup_interfaces $board
47 lantiq_setup_dsl $board
48 lantiq_setup_macs $board
49 board_config_flush
50
51 exit 0