aredn: port ar71xx_board_name

This commit is contained in:
Andrew Cameron 2018-03-31 21:26:49 -07:00 committed by Joe AE6XE
parent 5d09d7e005
commit 01b30a4c63
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -1453,3 +1453,11 @@ ar71xx_board_detect() {
echo "$AR71XX_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$AR71XX_MODEL" > /tmp/sysinfo/model
}
+ar71xx_board_name() {
+ local name
+
+ [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
+ [ -z "$name" ] && name="unknown"
+
+ echo "$name"
+}

View File

@ -4,3 +4,4 @@
704-enable-telnet.patch
705-aredn-banner.patch
706-MeshNode-SSID.patch
707-enable-board-name.patch