octeon: get rid of /lib/functions/octeon.sh hackery, use sysinfo directly
[openwrt-github/.git] / target / linux / octeon / base-files / etc / board.d / 01_network
1 #!/bin/sh
2 #
3 # Copyright (C) 2014-2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 case "$(cat /tmp/sysinfo/board_name)" in
11 erlite)
12         ucidef_set_interfaces_lan_wan "eth0" "eth1"
13         ;;
14
15 *)
16         ucidef_set_interfaces_lan_wan "eth0" "eth1"
17         ;;
18 esac
19
20 board_config_flush
21
22 exit 0