add linksys string replacements

This commit is contained in:
Martin Schütte 2014-08-07 16:57:21 +02:00
parent 7ed0325a9a
commit 21fce8e59a

View file

@ -151,6 +151,11 @@ function ff_hh_beautify_hw_name( $hw, $discard_vendor = '' ) {
$hw = str_replace( '-', ' ', $hw ); $hw = str_replace( '-', ' ', $hw );
$hw = str_replace( 'd link ', 'D-Link ', $hw ); $hw = str_replace( 'd link ', 'D-Link ', $hw );
$hw = str_replace( ' dir ', ' DIR-', $hw ); $hw = str_replace( ' dir ', ' DIR-', $hw );
} elseif ( ! strncmp( $hw, 'linksys', 7 ) ) {
if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );
$hw = str_replace( '-', ' ', $hw );
$hw = str_replace( 'linksys ', 'Linksys ', $hw );
$hw = str_replace( ' wrt', ' WRT-', $hw );
} }
return $hw; return $hw;
} }