arc: enable compatboot

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-09-08 19:09:36 +02:00
parent 73aa58b38b
commit 812a5d95f1

View File

@ -2,6 +2,17 @@
# Compatibility boot
function compatboot () {
# Locale
KEYMAP="$(readConfigKey "keymap" "${USER_CONFIG_FILE}")"
if [ -n "${KEYMAP}" ]; then
export LC_ALL="${KEYMAP}.UTF-8"
fi
# Timezone
TIMEZONE="$(readConfigKey "time.timezone" "${USER_CONFIG_FILE}")"
REGION="$(readConfigKey "time.region" "${USER_CONFIG_FILE}")"
if [ -n "${TIMEZONE}" ] && [ -n "${REGION}" ]; then
ln -sf "/usr/share/zoneinfo/right/${TIMEZONE}/${REGION}" /etc/localtime
fi
# Check for compatibility
deleteConfigKey "nanover" "${USER_CONFIG_FILE}"
return 0