01-03-2024, 01:59 AM
(This post was last modified: 01-03-2024, 02:00 AM by jenzd.
Edit Reason: typo
)
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.
whereas the file firstrun.sh which the Pi Imager created correctly contains "DE" as the WLAN country:
Regards
Jens
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