mirror of https://github.com/hak5/openwrt-owl.git
sunxi: introduce sunxi_board_name() in /lib/sunxi.sh
Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44212owl
parent
d4f6f169b8
commit
7a5ef7b99f
|
@ -135,3 +135,12 @@ sunxi_board_detect() {
|
||||||
echo "$SUNXI_BOARD_MODEL" > /tmp/sysinfo/model
|
echo "$SUNXI_BOARD_MODEL" > /tmp/sysinfo/model
|
||||||
echo "Detected $SUNXI_BOARD_NAME // $SUNXI_BOARD_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"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue