summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-25 21:10:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-25 21:10:58 +0000
commitfa1d5f982c8c065ea4a414aba9fa36d94a7d1e26 (patch)
tree7dbb3ace88ad8df2f04f0cda7d49dfdca7d7f0d4
parent4776ee1757995ef4bd954896a20ee18d14aeed16 (diff)
downloadpfsense-fa1d5f982c8c065ea4a414aba9fa36d94a7d1e26.zip
pfsense-fa1d5f982c8c065ea4a414aba9fa36d94a7d1e26.tar.gz
* Convert another ATH|WI hardcode into $g['wireless_regex']
-rwxr-xr-xusr/local/www/status_wireless.php8
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"); ?>
OpenPOWER on IntegriCloud