2015-07-04 01:25:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2015-12-03 23:07:38 +00:00
|
|
|
# Copyright (C) 2014-2015 OpenWrt.org
|
2015-07-04 01:25:15 +00:00
|
|
|
#
|
|
|
|
|
2015-12-03 23:07:38 +00:00
|
|
|
. /lib/functions/uci-defaults-new.sh
|
2015-07-04 01:25:15 +00:00
|
|
|
. /lib/at91.sh
|
|
|
|
|
2015-12-03 23:07:38 +00:00
|
|
|
board_config_update
|
2015-07-04 01:25:15 +00:00
|
|
|
|
|
|
|
case "$(at91_board_name)" in
|
|
|
|
|
|
|
|
sama5d3_xplained)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
ucidef_set_interface_lan "eth0"
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
2015-12-03 23:07:38 +00:00
|
|
|
board_config_flush
|
2015-07-04 01:25:15 +00:00
|
|
|
|
|
|
|
exit 0
|