projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4f6f16
)
sunxi: introduce sunxi_board_name() in /lib/sunxi.sh
author
Zoltan Herpai
<wigyori@uid0.hu>
Fri, 30 Jan 2015 00:12:29 +0000
(
00:12
+0000)
committer
Zoltan Herpai
<wigyori@uid0.hu>
Fri, 30 Jan 2015 00:12:29 +0000
(
00:12
+0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 44212
target/linux/sunxi/base-files/lib/sunxi.sh
patch
|
blob
|
history
diff --git
a/target/linux/sunxi/base-files/lib/sunxi.sh
b/target/linux/sunxi/base-files/lib/sunxi.sh
index b0a38740a414cee8e7e12500ff1f07f1f818a16e..d4dd9fedc48155485b06c72d055a89beb6643348 100644
(file)
--- 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"
+}