diff options
Diffstat (limited to 'target/linux/sunxi')
-rw-r--r-- | target/linux/sunxi/base-files/lib/sunxi.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/sunxi/base-files/lib/sunxi.sh b/target/linux/sunxi/base-files/lib/sunxi.sh index b0a3874..d4dd9fe 100644 --- a/target/linux/sunxi/base-files/lib/sunxi.sh +++ b/target/linux/sunxi/base-files/lib/sunxi.sh @@ -135,3 +135,12 @@ sunxi_board_detect() { echo "$SUNXI_BOARD_MODEL" > /tmp/sysinfo/model echo "Detected $SUNXI_BOARD_NAME // $SUNXI_BOARD_MODEL" } + +sunxi_board_name() { + local name + + [ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)" + [ -z "$name" ] && name="unknown" + + echo "$name" +} |