silence iwctl

This commit is contained in:
Tobias Powalowski 2022-12-11 10:22:47 +01:00
parent d3a12d5574
commit 94de5234cb

View file

@ -59,9 +59,9 @@ do_wireless() {
# time to connect
DIALOG --infobox "Connection to ${WLAN_SSID} with ${INTERFACE} ..." 3 70
if [[ -z "${WLAN_KEY}" ]]; then
iwctl station "${INTERFACE}" "${WLAN_CONNECT}" "${WLAN_SSID}" && WLAN_AUTH="1"
iwctl station "${INTERFACE}" "${WLAN_CONNECT}" "${WLAN_SSID}" >/dev/null 2>&1 && WLAN_AUTH="1"
else
iwctl --passphrase="${WLAN_KEY}" station "${INTERFACE}" "${WLAN_CONNECT}" "${WLAN_SSID}" && WLAN_AUTH="1"
iwctl --passphrase="${WLAN_KEY}" station "${INTERFACE}" "${WLAN_CONNECT}" "${WLAN_SSID}" >/dev/null 2>&1 && WLAN_AUTH="1"
fi
if [[ "${WLAN_AUTH}" == "1" ]]; then
DIALOG --infobox "Authentification successfull. Continuing in 3 seconds ..." 3 70