mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-01 14:37:26 -04:00
Simplify timezone option
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ intel_vaapi_driver=${args[9]}
|
|||||||
# configuring locale and clock Settings
|
# configuring locale and clock Settings
|
||||||
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
|
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
|
||||||
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
|
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
|
||||||
ln -s /usr/share/zoneinfo/America/"$timezone" /etc/localtime
|
ln -s /usr/share/zoneinfo/"$timezone" /etc/localtime
|
||||||
locale-gen
|
locale-gen
|
||||||
hwclock --systohc --utc
|
hwclock --systohc --utc
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -3,7 +3,7 @@
|
|||||||
loadkeys us
|
loadkeys us
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo rwinkhart\'s artix install script
|
echo rwinkhart\'s artix install script
|
||||||
echo last updated december 03, 2023 \(rev. B\)
|
echo last updated december 03, 2023 \(rev. C\)
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo You will be asked some questions before installation.
|
echo You will be asked some questions before installation.
|
||||||
echo -e "----------------------------------------------------------------------------------------------\n"
|
echo -e "----------------------------------------------------------------------------------------------\n"
|
||||||
@@ -28,8 +28,7 @@ read -rp "$username password: " userpassword
|
|||||||
|
|
||||||
read -rp "hostname: " hostname
|
read -rp "hostname: " hostname
|
||||||
|
|
||||||
echo -e '\namerica:'&&ls /usr/share/zoneinfo/America
|
echo -e '\ne.g. "EST" or "UTC"'
|
||||||
echo -e 'e.g. "New_York" or "Aruba"\n'
|
|
||||||
read -r -p "timezone: " timezone
|
read -r -p "timezone: " timezone
|
||||||
# stop questions
|
# stop questions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user