From 91a85031292e58769da8f556657df8dd58429b00 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 7 Dec 2023 18:53:11 -0500 Subject: [PATCH] Sync with pool.ntp.org at boot --- chrootInstall.sh | 4 +++- install.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/chrootInstall.sh b/chrootInstall.sh index 3c2765a..ea8fec7 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -19,6 +19,8 @@ echo 'LANG=en_US.UTF-8' > /etc/locale.conf ln -s /usr/share/zoneinfo/"$timezone" /etc/localtime locale-gen hwclock --systohc --utc +echo -e "#!/bin/sh\nntpdate -b pool.ntp.org &" > /etc/local.d/ntp.start +chmod 755 /etc/local.d/ntp.start # networkmanager configuration pacman -S networkmanager-openrc --noconfirm @@ -132,7 +134,7 @@ curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/confi curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/powerset/powerset.sh -o /usr/local/bin/powerset.sh curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/pipewire-start/pipewire-start.sh -o /usr/local/bin/pipewire-start.sh curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/zsh-histclean/histclean -o /usr/local/bin/histclean -echo -e \#\!/bin/sh"\nfstrim -Av &" > /etc/local.d/trim.start +echo -e "#!/bin/sh\nfstrim -Av &" > /etc/local.d/trim.start chmod 755 /usr/local/bin/powerset.sh /usr/local/bin/pipewire-start.sh /usr/local/bin/histclean /etc/local.d/trim.start chown -R "$username":users /home/"$username"/.config/autostart /home/"$username"/.config/plasma-org.kde.plasma.desktop-appletsrc /home/"$username"/.config/krunnerrc /home/"$username"/.config/baloofilerc /home/"$username"/.config/ksmserverrc diff --git a/install.sh b/install.sh index 1991ced..1ba2f00 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ loadkeys us echo ---------------------------------------------------------------------------------------------- echo rwinkhart\'s artix install script -echo last updated december 07, 2023 \(rev. C\) +echo last updated december 07, 2023 \(rev. D\) echo ---------------------------------------------------------------------------------------------- echo You will be asked some questions before installation. echo -e "----------------------------------------------------------------------------------------------\n" @@ -164,7 +164,7 @@ echo "$hostname" > /mnt/etc/hostname echo "hostname=\'"$hostname"\'" > /mnt/etc/conf.d/hostname # installing base packages -base_devel='db diffutils gc guile libisl libmpc perl autoconf automake bash dash binutils bison esysusers etmpfiles fakeroot file findutils flex gawk gcc gettext grep groff gzip libtool m4 make pacman pacman-contrib patch pkgconf python sed opendoas texinfo which bc udev' +base_devel='db diffutils gc guile libisl libmpc perl autoconf automake bash dash binutils bison esysusers etmpfiles fakeroot file findutils flex gawk gcc gettext grep groff gzip libtool m4 make pacman pacman-contrib patch pkgconf python sed opendoas texinfo which bc udev ntp' basestrap /mnt base $base_devel openrc elogind-openrc linux linux-firmware git man-db bash-completion # applying IPv6 privacy entensions for all interfaces