From 1a84f4b648e8b4ac31dbbc49c1afdc4fd3f435c2 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 3 Dec 2023 13:19:47 -0500 Subject: [PATCH] Simplify timezone option --- chrootInstall.sh | 2 +- install.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/chrootInstall.sh b/chrootInstall.sh index d5fdcca..e84a0bf 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -16,7 +16,7 @@ intel_vaapi_driver=${args[9]} # configuring locale and clock Settings echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen 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 hwclock --systohc --utc diff --git a/install.sh b/install.sh index f739f0a..8ee728c 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ loadkeys us echo ---------------------------------------------------------------------------------------------- echo rwinkhart\'s artix install script -echo last updated december 03, 2023 \(rev. B\) +echo last updated december 03, 2023 \(rev. C\) echo ---------------------------------------------------------------------------------------------- echo You will be asked some questions before installation. echo -e "----------------------------------------------------------------------------------------------\n" @@ -28,8 +28,7 @@ read -rp "$username password: " userpassword read -rp "hostname: " hostname -echo -e '\namerica:'&&ls /usr/share/zoneinfo/America -echo -e 'e.g. "New_York" or "Aruba"\n' +echo -e '\ne.g. "EST" or "UTC"' read -r -p "timezone: " timezone # stop questions