From 29a56b88502085218de0a17d15a39c33741ecf21 Mon Sep 17 00:00:00 2001 From: Joe Ayers Date: Wed, 7 Oct 2020 10:33:56 -0700 Subject: [PATCH] aredn: add new mikrotik model string for LHG based devices new model string: MikroTik RouterBOARD RBLHG-5HPnD --- files/www/cgi-bin/perlfunc.pm | 9 +++++++++ patches/006-add-lhg-5hpnd.patch | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/files/www/cgi-bin/perlfunc.pm b/files/www/cgi-bin/perlfunc.pm index 893fefc6..173bbbc5 100644 --- a/files/www/cgi-bin/perlfunc.pm +++ b/files/www/cgi-bin/perlfunc.pm @@ -1312,6 +1312,15 @@ sub hardware_info 'usechains' => 1, 'rfband' => '5800ubntus', }, + 'MikroTik RouterBOARD RBLHG-5HPnD' => { + 'name' => 'MikroTik RouterBOARD RBLHG-5HPnD', + 'comment' => '', + 'supported' => '1', + 'maxpower' => '28', + 'pwroffset' => '0', + 'usechains' => 1, + 'rfband' => '5800ubntus', + }, 'MikroTik RouterBOARD LHG 5HPnD-XL' => { 'name' => 'MikroTik RouterBOARD LHG 5HPnD-XL', 'comment' => '', diff --git a/patches/006-add-lhg-5hpnd.patch b/patches/006-add-lhg-5hpnd.patch index 86ec14ca..81bd3824 100644 --- a/patches/006-add-lhg-5hpnd.patch +++ b/patches/006-add-lhg-5hpnd.patch @@ -26,7 +26,7 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh =================================================================== --- openwrt.orig/target/linux/ar71xx/base-files/etc/diag.sh +++ openwrt/target/linux/ar71xx/base-files/etc/diag.sh -@@ -378,6 +378,7 @@ get_status_led() { +@@ -379,6 +379,7 @@ get_status_led() { rb-952ui-5ac2nd|\ rb-962uigs-5hact2hnt|\ rb-lhg-5nd|\ @@ -52,6 +52,16 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh *"LHG 5HPnD-XL") name="rb-lhg-5hpnd-xl" ;; +@@ -565,6 +569,9 @@ mikrotik_board_detect() { + *"wAPG-5HacT2HnD") + name="rb-wapg-5hact2hnd" + ;; ++ *"RBLHG-5HPnD") ++ name="rb-lhg-5hpnd" ++ ;; + esac + + echo "$name" Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh =================================================================== --- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh