Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: Use Raspberry Pi Imager to configure WLAN country, time zone & keyboard layout
#4
Hmm, you are right. The code was introduced in May 2023 and actually works correctly for time zone and keyboard layout (just retested in version 8.3.7).  I must have picked an older image version in my previous test or maybe forgot to set the right check mark in the Imager. Sorry for posting wrong information and asking for something which was already implemented ...

The same commit also added code to set the WLAN country (some lines later). That part, however, is indeed not working for me. When I set the WLAN country to "DE" in the Pi Imager, I still get "US" in Moode.

Code:
pi@moode:~ $ moodeutl -q "select wlan_country from cfg_network"

US

whereas the file firstrun.sh which the Pi Imager created correctly contains "DE" as the WLAN country:

Code:
if [ -f /usr/lib/raspberrypi-sys-mods/imager_custom ]; then
  /usr/lib/raspberrypi-sys-mods/imager_custom set_wlan '<ssid>' '<psk>' 'DE'
else
cat >/etc/wpa_supplicant/wpa_supplicant.conf <<'WPAEOF'
country=DE

Regards
Jens
Reply


Messages In This Thread
RE: Use Raspberry Pi Imager to configure WLAN country, time zone & keyboard layout - by jenzd - 01-03-2024, 01:59 AM

Forum Jump: