Posts: 4
Joined: Sun Jan 31, 2021 3:45 pm

WPA_GUI Popup in Kiosk Mode if no Wifi

Wed May 12, 2021 11:55 am

Hi there,

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

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 &>/dev/null                                                                                                                                                             
if can_ping; then                                                                                                                                                                               
    echo "Successfully pinged google"                                                                                                                                                           
    echo "Failed pinging google"                                                                                                                                                                
I have put this code at the bottom of my script and if I turn off the wifi, it starts wpa_gui. However, the wpa_gui stays in the background of the browser and so the user cannot really see the wpa_gui.

Any idea, how I can make it, so that the wpa_gui appears in the foreground?

Return to “Beginners”