diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-25 21:07:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-25 21:07:30 +0000 |
commit | 4776ee1757995ef4bd954896a20ee18d14aeed16 (patch) | |
tree | 08ca1bc128d569c3f5fba37d45e7fac7ccc82acb /usr | |
parent | 187be28993d1f2eb7cf4d269979a62b5f52e0471 (diff) | |
download | pfsense-4776ee1757995ef4bd954896a20ee18d14aeed16.zip pfsense-4776ee1757995ef4bd954896a20ee18d14aeed16.tar.gz |
* Use LAN interface for check
* Convert another ATH|WI hardcode into $g['wireless_regex']
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/fbegin.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index 174e668..39e4e48 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -163,13 +163,13 @@ require_once("notices.inc"); preg_match($g['wireless_regex'], $config['interfaces']['wan']['if'])) $ifdescrs['wan'] = 'WAN'; if (is_array($config['interfaces']['lan']['wireless']) && - preg_match($g['wireless_regex'], $config['interfaces']['wan']['if'])) + 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"))) - $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; + preg_match($g['wireless_regex'], $config['interfaces']['opt' . $j]['if'])) + $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; } if (count($ifdescrs) > 0): ?> <li><a href="/status_wireless.php" class="navlnk">Wireless</a></li> |