projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mxs: add basic board runtime detection support
[openwrt.git]
/
target
/
linux
/
mxs
/
base-files
/
etc
/
uci-defaults
/
02_network
1
#!/bin/sh
2
# Copyright (C) 2013 OpenWrt.org
3
4
[ -e /etc/config/network ] && exit 0
5
6
touch /etc/config/network
7
8
. /lib/functions/uci-defaults.sh
9
. /lib/mxs.sh
10
11
ucidef_set_interface_loopback
12
13
board=$(mxs_board_name)
14
15
case "$board" in
16
*)
17
ucidef_set_interface_lan 'eth0'
18
;;
19
esac
20
21
uci commit network
22
23
exit 0