[ MACADDR=<hw addres> ]
if DEVICE=wireless interface (man iwconfig(8))
+ WLAN_UPEARLY=<yes>|<no> Up device before setting any WLAN parameters
+ (needed for some drivers)
WLAN_ESSID=<ESSID or Network Name (Domain ID)>|any|off
WLAN_NWID=<Network ID (Domain ID)>|off
WLAN_FREQ=<frequency> (2.422G)
fi
if is_wireless_device "${DEVICE}"; then
+ is_yes "${WLAN_UPEARLY}" && ip link set ${DEVICE} up
wireless_param ${DEVICE}
if is_yes "${WLAN_WPA}"; then
/usr/sbin/wpa_supplicant -B -w -D ${WLAN_WPA_DRIVER} -c ${WLAN_WPA_CONFIG} -i ${DEVICE} ${WLAN_WPA_OPTIONS} -P "/var/run/wpa_supplicant-${DEVICE}.pid"