V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -28,6 +28,7 @@ guard_sourcing
|
|||||||
#######################################
|
#######################################
|
||||||
setup_locales() {
|
setup_locales() {
|
||||||
do_in_target "${TARGET}" apt-get install -y locales
|
do_in_target "${TARGET}" apt-get install -y locales
|
||||||
|
mkdir -p "${TARGET}/etc/default"
|
||||||
|
|
||||||
### Give priority to '${locale_locale}' over separately configured variables '{$locale_country}' and '{$locale_language}'.
|
### Give priority to '${locale_locale}' over separately configured variables '{$locale_country}' and '{$locale_language}'.
|
||||||
### If 'locale_locale' is not set, build it from 'locale_language' and 'locale_country'.
|
### If 'locale_locale' is not set, build it from 'locale_language' and 'locale_country'.
|
||||||
@@ -35,12 +36,14 @@ setup_locales() {
|
|||||||
declare locale_locale="${locale_language}_${locale_country}.UTF-8"
|
declare locale_locale="${locale_language}_${locale_country}.UTF-8"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[[ -n "${locale_locale:-}" ]] || do_log "error" "file_only" "4110() Variable '${locale_locale}' is not set."
|
||||||
|
|
||||||
### Generate the specified locale
|
### Generate the specified locale
|
||||||
do_in_target "${TARGET}" locale-gen "${locale_locale}"
|
do_in_target "${TARGET}" locale-gen "${locale_locale}"
|
||||||
|
|
||||||
### Set the standard locale.
|
### Set the standard locale.
|
||||||
#do_in_target "${TARGET}" update-locale LANG="${locale_locale}" LC_ALL="${locale_locale}"
|
#do_in_target "${TARGET}" update-locale LANG="${locale_locale}" LC_ALL="${locale_locale}"
|
||||||
echo -e "LANG=${locale_locale}\nLC_ALL=${locale_locale}" > "${TARGET}/etc/default/locale"
|
echo -e "LANG=${locale_locale}\nLC_ALL=${locale_locale}" >| "${TARGET}/etc/default/locale"
|
||||||
do_in_target "${TARGET}" locale-gen "${locale_locale}"
|
do_in_target "${TARGET}" locale-gen "${locale_locale}"
|
||||||
|
|
||||||
### Set the keyboard layout for the system (for consoles).
|
### Set the keyboard layout for the system (for consoles).
|
||||||
|
|||||||
Reference in New Issue
Block a user