mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Automatic timezone.
This commit is contained in:
parent
fbbeb567fb
commit
0f5c97f380
1 changed files with 4 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ read -r -p "Please enter the hostname: " hostname
|
||||||
echo $hostname > /mnt/etc/hostname
|
echo $hostname > /mnt/etc/hostname
|
||||||
|
|
||||||
# Setting up locales.
|
# Setting up locales.
|
||||||
read -r -p "Please insert the locale you use in this format (xx_XX): " locale
|
read -r -p "Please insert the locale you use (format: xx_XX): " locale
|
||||||
echo "$locale.UTF-8 UTF-8" > /mnt/etc/locale.gen
|
echo "$locale.UTF-8 UTF-8" > /mnt/etc/locale.gen
|
||||||
echo "LANG=$locale.UTF-8" > /mnt/etc/locale.conf
|
echo "LANG=$locale.UTF-8" > /mnt/etc/locale.conf
|
||||||
|
|
||||||
|
|
@ -142,6 +142,9 @@ fi
|
||||||
# Configuring the system.
|
# Configuring the system.
|
||||||
arch-chroot /mnt /bin/bash -e <<EOF
|
arch-chroot /mnt /bin/bash -e <<EOF
|
||||||
|
|
||||||
|
# Setting up timezone.
|
||||||
|
timedatectl set-timezone "$(curl http://ip-api.com/line?fields=timezone)
|
||||||
|
|
||||||
# Setting up clock.
|
# Setting up clock.
|
||||||
hwclock --systohc
|
hwclock --systohc
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue