Change Gl.iNet name mangling, because OpenWrt is awesome at naming
This commit is contained in:
parent
95cde2e10f
commit
a5eab032fd
|
@ -230,7 +230,7 @@ function ff_hh_beautify_hw_name( $hw, $discard_vendor = '' ) {
|
||||||
if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );
|
if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );
|
||||||
$hw = strtoupper( $hw );
|
$hw = strtoupper( $hw );
|
||||||
$hw = str_replace( '-', '', $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 );
|
if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );
|
||||||
$hw = strtoupper( $hw );
|
$hw = strtoupper( $hw );
|
||||||
$hw = str_replace( '-', '', $hw );
|
$hw = str_replace( '-', '', $hw );
|
||||||
|
|
Loading…
Reference in a new issue