- patch by Pawel Nogas <pnogas(AT)amu(DOT)edu(DOT)pl>
svn-id: @9921
fi
fi
-if is_wireless_device "${DEVICE}"; then
- if is_yes "${WLAN_WPA}"; then
- killproc --pidfile "wpa_supplicant-${DEVICE}.pid" wpa_supplicant > /dev/null 2>&1
- rm -f "/var/run/wpa_supplicant-${DEVICE}.pid"
- fi
+if is_yes "${WLAN_WPA}"; then
+ killproc --pidfile "wpa_supplicant-${DEVICE}.pid" wpa_supplicant > /dev/null 2>&1
+ rm -f "/var/run/wpa_supplicant-${DEVICE}.pid"
fi
# Check to make sure the device is actually up
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 -D ${WLAN_WPA_DRIVER} -c ${WLAN_WPA_CONFIG:-/etc/wpa_supplicant.conf} -i ${DEVICE} ${WLAN_WPA_OPTIONS} -P "/var/run/wpa_supplicant-${DEVICE}.pid" -B
- fi
+fi
+
+if is_yes "${WLAN_WPA}"; then
+ /usr/sbin/wpa_supplicant -D ${WLAN_WPA_DRIVER} -c ${WLAN_WPA_CONFIG:-/etc/wpa_supplicant.conf} -i ${DEVICE} ${WLAN_WPA_OPTIONS} -P "/var/run/wpa_supplicant-${DEVICE}.pid" -B
fi
if [ "$HANDLING" = "2" ]; then