I wanted to use wpa_gui in conjunction with our Buster/Chromium - based kiosk mode.
So far I have achieved adding a simple command that checks if there is an internet connection, and if there is not, it will open the wpa_gui:
Code: Select all
#!/bin/bash
set -o errexit # Used to exit upon error, avoiding cascading errors
set -o pipefail # Unveils hidden failures
set -o nounset # Exposes unset variables
can_ping() {
ping -c1 google.com &>/dev/null
}
if can_ping; then
echo "Successfully pinged google"
else
echo "Failed pinging google"
wpa_gui
fi
Any idea, how I can make it, so that the wpa_gui appears in the foreground?