2018-08-23 18:33:06 -06:00
|
|
|
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
|
|
|
|
===================================================================
|
|
|
|
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
|
|
|
|
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
|
2020-01-22 18:37:27 -07:00
|
|
|
@@ -1652,3 +1652,11 @@ ar71xx_board_detect() {
|
2018-03-31 22:26:49 -06:00
|
|
|
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"
|
|
|
|
+}
|