Project

General

Profile

« Previous | Next » 

Revision cddb1be2

Added by Scott Ullrich over 15 years ago

Do not specify a wlan # and let freebsd decide and return the interface that was created before renaming.

View differences:

etc/inc/interfaces.inc
1306 1306
		// Setup wireless nic
1307 1307
		if($wlcfg['wireless']['mode'] == "hostap") 
1308 1308
			$mode = "wlanmode hostap";
1309
		exec("/sbin/ifconfig wlan{$interface_num} create wlandev {$wlcfg['if']} {$mode}");
1310
		exec("/sbin/ifconfig wlan{$interface_num} name {$wlcfg['if']}_wlan{$interface_num}");
1309
		$newif = trim(`/sbin/ifconfig wlan create wlandev {$wlcfg['if']} {$mode}`);
1310
		exec("/sbin/ifconfig wlan{$newif} name {$wlcfg['if']}_wlan{$interface_num}");
1311 1311
	}
1312 1312
}
1313 1313

  

Also available in: Unified diff