base-files: board.d: auto-set model id and name if /tmp/sysinfo is available
[openwrt.git] / target / linux / kirkwood / base-files / etc / board.d / 00_model
1 #!/bin/sh
2 # Copyright (C) 2015 OpenWrt.org
3
4 . /lib/functions/uci-defaults-new.sh
5
6 board_config_update
7
8 ucidef_set_board_id "$(cat /tmp/sysinfo/board_name)"
9 ucidef_set_model_name "$(cat /tmp/sysinfo/model)"
10
11 board_config_flush
12
13 exit 0