Openwrt/target/linux/octeon/base-files/etc/uci-defaults/01_network
John Crispin e6e024f155 octeon: add basic board detection
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41274
2014-06-19 14:13:20 +00:00

32 lines
466 B
Bash

#!/bin/sh
#
# Copyright (C) 2014 OpenWrt.org
#
[ -e /etc/config/network ] && exit 0
. /lib/functions/uci-defaults.sh
. /lib/functions/octeon.sh
touch /etc/config/network
board=$(octeon_board_name)
case "$board" in
erlite)
ucidef_set_interface_loopback
ucidef_set_interface_lan 'eth0'
ucidef_set_interface_wan 'eth1'
;;
*)
ucidef_set_interface_loopback
ucidef_set_interface_wan 'eth1'
ucidef_set_interface_lan 'eth0'
;;
esac
uci commit network
exit 0