From 119b2d9edbb4ce849b8c802ef752ef0d83abfbc9 Mon Sep 17 00:00:00 2001 From: 4ndr3 <4ndr3@users.noreply.github.com> Date: Sat, 7 May 2016 22:44:43 +0200 Subject: [PATCH] =?UTF-8?q?Neue=20Ger=C3=A4te=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cisco Meraki & 8devices --- freifunk-versions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/freifunk-versions.php b/freifunk-versions.php index 9178ee0..977ccbb 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -186,6 +186,16 @@ function ff_hh_beautify_hw_name( $hw, $discard_vendor = '' ) { if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw ); $hw = strtoupper( $hw ); $hw = str_replace( '-', '', $hw ); + } elseif ( ! strncmp( $hw, '8devices', 8 ) ) { + if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw ); + $hw = strtoupper( $hw ); + $hw = str_replace( 'CARAMBOLA2-BOARD', 'Carambola 2', $hw ); + $hw = str_replace( '-', '', $hw ); + } elseif ( ! strncmp( $hw, 'meraki', 6 ) ) { + if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw ); + $hw = strtoupper( $hw ); + $hw = str_replace( 'meraki', '', $hw ); + $hw = str_replace( '-', '', $hw ); } return $hw; }