24 lines
303 B
Text
24 lines
303 B
Text
|
#!/bin/sh
|
||
|
# Copyright (C) 2013 OpenWrt.org
|
||
|
|
||
|
[ -e /etc/config/network ] && exit 0
|
||
|
|
||
|
touch /etc/config/network
|
||
|
|
||
|
. /lib/functions/uci-defaults.sh
|
||
|
. /lib/mxs.sh
|
||
|
|
||
|
ucidef_set_interface_loopback
|
||
|
|
||
|
board=$(mxs_board_name)
|
||
|
|
||
|
case "$board" in
|
||
|
*)
|
||
|
ucidef_set_interface_lan 'eth0'
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
uci commit network
|
||
|
|
||
|
exit 0
|