diff options
author | Scott Ullrich <sullrich@G5.local> | 2009-10-25 19:15:04 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@G5.local> | 2009-10-25 19:15:04 -0400 |
commit | 891546ea85bdc3d2a41694bce791f9b91fc9fe2c (patch) | |
tree | c41dc40f28460f5f1e1563ec08c0aa2e876d4014 | |
parent | b99256c132caf8fe3cab5aa6df5400dd9702921a (diff) | |
download | pfsense-891546ea85bdc3d2a41694bce791f9b91fc9fe2c.zip pfsense-891546ea85bdc3d2a41694bce791f9b91fc9fe2c.tar.gz |
Full wlan name is returned now. Use it
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index de7b14e..a899983 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1296,7 +1296,7 @@ function interface_wireless_clone($if, $wlcfg) { $needs_clone = true; $interface_num = substr($wlcfg['if'], 3); if(does_interface_exist("{$wlcfg['if']}_wlan{$interface_num}")) { - $hostap_enabled = `/sbin/ifconfig {$wlcfg['if']}_wlan{$interface_num} | grep hostap`; + $hostap_enabled = `/sbin/ifconfig | grep {$wlcfg['if']}_wlan{$interface_num} | grep hostap`; if($hostap_enabled) $needs_clone = false; else @@ -1310,7 +1310,7 @@ function interface_wireless_clone($if, $wlcfg) { // example: wlan2 $newif = trim(`/sbin/ifconfig wlan create wlandev {$wlcfg['if']} {$mode}`); // Rename the interface to $parentnic_wlan$parentnic#: EX: ath0_wlan0 - exec("/sbin/ifconfig wlan{$newif} name {$wlcfg['if']}_wlan{$interface_num}"); + exec("/sbin/ifconfig {$newif} name {$wlcfg['if']}_wlan{$interface_num}"); } } |