2015-12-03 22:42:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2014-2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
2015-12-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2015-12-03 22:42:09 +00:00
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
2016-01-29 23:19:41 +00:00
|
|
|
case "$(cat /tmp/sysinfo/board_name)" in
|
2015-12-03 22:42:09 +00:00
|
|
|
erlite)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|