forked from Ivasoft/openwrt
mxs: add basic board runtime detection support
Signed-off-by: Michael Heimpold <mhei@heimpold.de> Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 38777
This commit is contained in:
23
target/linux/mxs/base-files/etc/uci-defaults/02_network
Normal file
23
target/linux/mxs/base-files/etc/uci-defaults/02_network
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user