treewide: remove execute bit and shebang from board.d files
[openwrt/openwrt.git] / target / linux / x86 / base-files / etc / board.d / 02_network
1 #
2 # Copyright © 2017 OpenWrt.org
3 #
4
5 . /lib/functions/system.sh
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 case "$(board_name)" in
11 pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
12 ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
13 ;;
14 traverse-technologies-geos)
15 ucidef_set_interface_lan "eth0 eth1"
16 ucidef_add_atm_bridge "0" "35" "llc" "bridged"
17 ucidef_set_interface_wan "nas0" "dhcp"
18 macaddr="$(cat /sys/class/net/eth0/address)" 2>/dev/null
19 [ -n "$macaddr" ] && ucidef_set_interface_macaddr "wan" "$macaddr"
20 ;;
21 esac
22 board_config_flush
23
24 exit 0