From b78d7a931e758d7a1b0f3dee35e0bd7cb601df29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sch=C3=BCtte?= Date: Fri, 11 Apr 2014 22:39:21 +0200 Subject: [PATCH 1/4] workaround: "ubiquity ... m" devices are actually "ubiquity ... m1" --- freifunk-versions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/freifunk-versions.php b/freifunk-versions.php index cb9c6b2..43be812 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -84,6 +84,7 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) { $hw = str_replace('-', ' ', $hw); $hw = str_replace('TP LINK TL ', 'TP-Link TL-', $hw); } elseif (!strncmp($hw, 'ubiquiti', 8)) { + $hw = str_replace('-m', ' M1', $hw); $hw = str_replace('-', ' ', $hw); $hw = ucwords($hw); } From 7ff07b6c5711132e7f579153e8a344ea8bfbeaa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sch=C3=BCtte?= Date: Fri, 11 Apr 2014 22:40:19 +0200 Subject: [PATCH 2/4] bump version --- freifunk-versions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freifunk-versions.php b/freifunk-versions.php index 43be812..49f0629 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -3,7 +3,7 @@ Plugin Name: Freifunk Hamburg Firmware List Shortcode Plugin URI: http://mschuette.name/ Description: Defines shortcodes to display Freifunk Hamburg Firmware versions -Version: 0.2 +Version: 0.2a Author: Martin Schuette Author URI: http://mschuette.name/ Licence: 2-clause BSD From 07b1f9c3af1660be45bca3664ebdf4393575b577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sch=C3=BCtte?= Date: Mon, 28 Apr 2014 22:45:19 +0200 Subject: [PATCH 3/4] fix to M2 --- freifunk-versions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freifunk-versions.php b/freifunk-versions.php index 49f0629..f323c4a 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -84,7 +84,7 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) { $hw = str_replace('-', ' ', $hw); $hw = str_replace('TP LINK TL ', 'TP-Link TL-', $hw); } elseif (!strncmp($hw, 'ubiquiti', 8)) { - $hw = str_replace('-m', ' M1', $hw); + $hw = str_replace('-m', ' M2', $hw); $hw = str_replace('-', ' ', $hw); $hw = ucwords($hw); } From f8f17ebdfa74851127deb7fdc6b568eb31132c05 Mon Sep 17 00:00:00 2001 From: "info@mschuette.name" Date: Tue, 20 May 2014 16:36:45 +0000 Subject: [PATCH 4/4] yet another hack for Nanostation Loco --- freifunk-versions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/freifunk-versions.php b/freifunk-versions.php index f323c4a..b79c7f3 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -84,6 +84,7 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) { $hw = str_replace('-', ' ', $hw); $hw = str_replace('TP LINK TL ', 'TP-Link TL-', $hw); } elseif (!strncmp($hw, 'ubiquiti', 8)) { + $hw = str_replace('ubiquiti-bullet-m', 'ubiquiti-bullet-m / nanostation-loco-m', $hw); $hw = str_replace('-m', ' M2', $hw); $hw = str_replace('-', ' ', $hw); $hw = ucwords($hw);