base: add musl switch
This commit is contained in:
parent
380a768d8d
commit
5cb01019b8
22
etc/base
22
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user