at91: switch from uci-defaults to board.d
[openwrt/svn-archive/archive.git] / target / linux / at91 / 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