- fixed BOARD value for PicoStation and NanoStation

Signed-off-by: Steffen Pankratz <kratz00@gmx.de>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Steffen Pankratz 2015-12-10 17:40:14 +01:00
parent 87ec54d072
commit 59ef3c0534
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# the system init finished. By default this file does nothing.
BOARD=$(cat /var/sysinfo/board_name)
case "$BOARD" in
tl-wr1043nd)
BOARD=tl-wr1043nd-v1
@ -19,7 +20,11 @@ case "$BOARD" in
tl-wr841n-v9)
grep "v10" /var/sysinfo/model && BOARD=tl-wr841n-v10
;;
nanostation-m)
BOARD=ubnt-nano-m
;;
esac
if ! uci get board.model.name; then
uci set board.model.name=$BOARD
fi