From a5eab032fd2da2ea1de17427f949411ff7655243 Mon Sep 17 00:00:00 2001 From: Alexander Dietrich Date: Fri, 15 Feb 2019 21:57:02 +0100 Subject: [PATCH] Change Gl.iNet name mangling, because OpenWrt is awesome at naming --- freifunk-versions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freifunk-versions.php b/freifunk-versions.php index 197059f..ab811a5 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -230,7 +230,7 @@ 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, 'gl-inet', 7 ) ) { + } elseif ( ! strncmp( $hw, 'gl-', 3 ) ) { if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw ); $hw = strtoupper( $hw ); $hw = str_replace( '-', '', $hw );