From 3cf796170971d52b76ce321e3aa7acb387eafd74 Mon Sep 17 00:00:00 2001 From: 4ndr3 <4ndr3@users.noreply.github.com> Date: Fri, 21 Apr 2017 20:11:35 +0200 Subject: [PATCH] =?UTF-8?q?Aktualisiert=20f=C3=BCr=20firmware=200.8.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- freifunk-versions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/freifunk-versions.php b/freifunk-versions.php index 09dca23..9941cc1 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -146,7 +146,6 @@ function ff_hh_beautify_hw_name( $hw, $discard_vendor = '' ) { } elseif ( ! strncmp( $hw, 'ubiquiti', 8 ) ) { if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw ); $hw = str_replace( 'bullet-m', 'bullet-m', $hw ); - $hw = str_replace( '-m', ' M2', $hw ); $hw = str_replace( '-', ' ', $hw ); $hw = ucwords( $hw ); } elseif ( ! strncmp( $hw, 'd-link', 6 ) ) { @@ -196,6 +195,11 @@ function ff_hh_beautify_hw_name( $hw, $discard_vendor = '' ) { $hw = strtoupper( $hw ); $hw = str_replace( 'meraki', '', $hw ); $hw = str_replace( '-', '', $hw ); + } elseif ( ! strncmp( $hw, 'openmesh', 8 ) ) { + if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw ); + $hw = strtoupper( $hw ); + $hw = str_replace( 'openmesh', '', $hw ); + $hw = str_replace( '-', '', $hw ); } return $hw; }