diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-25 21:10:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-25 21:10:58 +0000 |
commit | fa1d5f982c8c065ea4a414aba9fa36d94a7d1e26 (patch) | |
tree | 7dbb3ace88ad8df2f04f0cda7d49dfdca7d7f0d4 | |
parent | 4776ee1757995ef4bd954896a20ee18d14aeed16 (diff) | |
download | pfsense-fa1d5f982c8c065ea4a414aba9fa36d94a7d1e26.zip pfsense-fa1d5f982c8c065ea4a414aba9fa36d94a7d1e26.tar.gz |
* Convert another ATH|WI hardcode into $g['wireless_regex']
-rwxr-xr-x | usr/local/www/status_wireless.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index f06bb66..f5174a3 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -96,17 +96,17 @@ include("head.inc"); <?php $i = 0; $ifdescrs = array(); if (is_array($config['interfaces']['wan']['wireless']) && - (strstr($config['interfaces']['wan']['if'], "wi") || strstr($config['interfaces']['wan']['if'], "ath"))) + preg_match($g['wireless_regex'], $config['interfaces']['wan']['if'])) $ifdescrs['wan'] = 'WAN'; if (is_array($config['interfaces']['lan']['wireless']) && - (strstr($config['interfaces']['lan']['if'], "wi") || strstr($config['interfaces']['lan']['if'], "ath"))) + preg_match($g['wireless_regex'], $config['interfaces']['lan']['if'])) $ifdescrs['lan'] = 'LAN'; for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { if (is_array($config['interfaces']['opt' . $j]['wireless']) && isset($config['interfaces']['opt' . $j]['enable']) && - (strstr($config['interfaces']['opt' . $j]['if'], "wi") || strstr($config['interfaces']['opt' . $j]['if'], "ath"))) + preg_match($g['wireless_regex'], $config['interfaces']['opt' . $j]['if'])) $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; } @@ -189,6 +189,6 @@ include("head.inc"); <?php $i++; endforeach; ?> </table> <?php else: ?> -<strong>No supported wireless interfaces were found for status display (only cards that use the wi[n] or ath[n] driver are supported).</strong> +<strong>No supported wireless interfaces were found for status display (only cards that use the wi[n], ath[n], an[n], ral[n], ural[n] and wai[n] driver are supported).</strong> <?php endif; ?> <?php include("fend.inc"); ?> |