mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 00:59:53 +07:00
arc: enable compatboot
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
73aa58b38b
commit
812a5d95f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user