Skip to content

Commit

Permalink
v6.25
Browse files Browse the repository at this point in the history
+ DietPi-FirstBoot | locale -a shows en_GB.UTF-8 as "en_GB.utf8" for some reason
  • Loading branch information
MichaIng authored Jul 3, 2019
1 parent ffc8dae commit b43e9a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/var/lib/dietpi/services/dietpi-firstboot.bash
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
# Apply Language (Locale)
local autoinstall_language=$(grep -m1 '^[[:blank:]]*AUTO_SETUP_LOCALE=' /DietPi/dietpi.txt | sed 's/^[^=]*=//')
grep -q "^$autoinstall_language UTF-8$" /usr/share/i18n/SUPPORTED || autoinstall_language='en_GB.UTF-8'
if ! locale | grep -qE "(LANG|LC_ALL)=[\'\"]?$autoinstall_language[\'\"]?" || ! locale -a | grep -q 'en_GB.UTF-8'; then
if ! locale | grep -qE "(LANG|LC_ALL)=[\'\"]?$autoinstall_language[\'\"]?" || ! locale -a | grep -qiE 'en_GB.UTF-?8'; then

G_DIETPI-NOTIFY 2 "Setting Locale $autoinstall_language. Please wait..."
/DietPi/dietpi/func/dietpi-set_software locale "$autoinstall_language"
Expand Down

0 comments on commit b43e9a1

Please sign in to comment.