diff --git a/etc/base b/etc/base index 5631ff0..826b869 100644 --- a/etc/base +++ b/etc/base @@ -10,23 +10,27 @@ config() { chown root:root / chmod 755 / echo ${HOSTNAME} > /etc/hostname +if ! grep -q musl <<< $(uname -a); then + ln -sf "/usr/share/zoneinfo/${TIMEZONE}" /etc/localtime sed -i "s/#HOSTNAME=\"void-live\"/HOSTNAME=${HOSTNAME}/g" /etc/rc.conf sed -i "s/Europe\/Madrid/${TIMEZONE//\//\\/}/" /etc/rc.conf sed -i "/HARDWARECLOCK/s/^#//g" /etc/rc.conf sed -i "/FONT=/s/^#//g" /etc/rc.conf -echo "LANG=en_US.UTF-8" > /etc/locale.conf -echo "en_US.UTF-8 UTF-8" >> /etc/default/libc-locales -if ! [ "${LANGUAGE_}" == "en" ]; then - echo "${L1}.UTF-8 UTF-8" >> /etc/default/libc-locales -fi +if ! grep -q musl <<< $(uname -a); then + echo "LANG=en_US.UTF-8" > /etc/locale.conf + echo "en_US.UTF-8 UTF-8" >> /etc/default/libc-locales + if ! [ "${LANGUAGE_}" == "en" ]; then + echo "${L1}.UTF-8 UTF-8" >> /etc/default/libc-locales + fi -if ! [ "${KEY_LANG}" == "en" ]; then - echo "KEYMAP=${L2}" > /etc/vconsole.conf -fi + if ! [ "${KEY_LANG}" == "en" ]; then + echo "KEYMAP=${L2}" > /etc/vconsole.conf + fi -xbps-reconfigure -f glibc-locales + xbps-reconfigure -f glibc-locales +fi enable_service acpid cronie socklog-unix nanoklogd uuidd agetty-tty1 agetty-tty2 agetty-tty3 agetty-tty4 isc-ntpd udevd disable_service agetty-tty6 agetty-tty5