bsp: make board config dynamic

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Tim Niemeyer 2014-04-11 22:23:42 +02:00
parent ec81a2e441
commit c8ef1aa724
3 changed files with 7 additions and 5 deletions

View File

@ -0,0 +1 @@
config model 'model'

View File

@ -1,12 +1,15 @@
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
BOARD=$(cat /var/sysinfo/board_name)
if ! uci get board.model.name; then
uci set board.model.name=BOARD
fi
. /etc/rc.local.$BOARD
# collect environment info and write to dot-script
/etc/environment.sh > /tmp/environment
BOARD=$(cat /var/sysinfo/board_name)
. /etc/rc.local.$BOARD
# Starting NTP-Client Daemon
ntpd -p ${NTPD_IP}

View File

@ -1,2 +0,0 @@
config model 'model'
option name 'tl-wr841n-v9'