You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
466 B

#!/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