treewide: remove execute bit and shebang from board.d files
[openwrt/openwrt.git] / target / linux / x86 / base-files / etc / board.d / 02_network
old mode 100755 (executable)
new mode 100644 (file)
index dcce0fa..8d10c63
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright © 2017 OpenWrt.org
 #
@@ -8,9 +7,10 @@
 
 board_config_update
 
-board="$(cat /tmp/sysinfo/board_name)" 2>/dev/null
-
-case "$board" in
+case "$(board_name)" in
+pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
+       ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
+       ;;
 traverse-technologies-geos)
        ucidef_set_interface_lan "eth0 eth1"
        ucidef_add_atm_bridge "0" "35" "llc" "bridged"