mirror of https://github.com/aredn/aredn.git
aredn: port ar71xx_board_name
This commit is contained in:
parent
5d09d7e005
commit
01b30a4c63
|
@ -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"
|
||||
+}
|
|
@ -4,3 +4,4 @@
|
|||
704-enable-telnet.patch
|
||||
705-aredn-banner.patch
|
||||
706-MeshNode-SSID.patch
|
||||
707-enable-board-name.patch
|
||||
|
|
Loading…
Reference in New Issue