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-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2015-07-04 01:25:15 +00:00
|
|
|
|
2015-12-03 23:07:38 +00:00
|
|
|
board_config_update
|
2015-07-04 01:25:15 +00:00
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
case "$(board_name)" in
|
2015-07-04 01:25:15 +00:00
|
|
|
|
|
|
|
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
|