mirror of
https://github.com/karl0ss/AnotterKiosk.git
synced 2025-10-25 04:33:58 +01:00
16 lines
361 B
Bash
Executable File
16 lines
361 B
Bash
Executable File
#!/bin/bash
|
|
|
|
WIFI_SSID=$(get-ini /boot/kioskbrowser.ini wifi ssid)
|
|
WIFI_PSK=$(get-ini /boot/kioskbrowser.ini wifi psk)
|
|
WIFI_COUNTRY=$(get-ini /boot/kioskbrowser.ini wifi country)
|
|
|
|
if [ -n "${WIFI_COUNTRY}" ]
|
|
then
|
|
nmcli general reload conf-only
|
|
fi
|
|
|
|
if [ -n "${WIFI_SSID}" ]
|
|
then
|
|
nmcli device wifi connect "${WIFI_SSID}" password "${WIFI_PSK}" || true
|
|
fi
|