summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2015-01-30 00:12:29 +0000
committerZoltan Herpai <wigyori@uid0.hu>2015-01-30 00:12:29 +0000
commit7a5ef7b99fa111252cea45cae54d432cc987f27e (patch)
tree69dd3127ec0c13392452156e12204fb710ab4180 /target/linux
parentd4f6f169b86d36dbb6f1df829fac1aecfb27d630 (diff)
downloadmtk-20170518-7a5ef7b99fa111252cea45cae54d432cc987f27e.zip
mtk-20170518-7a5ef7b99fa111252cea45cae54d432cc987f27e.tar.gz
mtk-20170518-7a5ef7b99fa111252cea45cae54d432cc987f27e.tar.bz2
sunxi: introduce sunxi_board_name() in /lib/sunxi.sh
Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44212
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/sunxi/base-files/lib/sunxi.sh9
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"
+}