Only install ntp local service startup script on desktops

This commit is contained in:
2024-08-26 00:03:52 -04:00
parent 110faca85f
commit 0b66c379a0
2 changed files with 7 additions and 6 deletions
+5 -4
View File
@@ -20,9 +20,6 @@ echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
ln -s "$timezone" /etc/localtime
locale-gen
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/ntp-rclocal/20-ntp.start -o /etc/local.d/20-ntp.start
chmod 755 /etc/local.d/20-ntp.start
echo "0" > /etc/local.d/.ntpsync
# networkmanager configuration
pacman -S networkmanager-openrc --noconfirm
@@ -105,9 +102,13 @@ fi
# disable kernel watchdog
echo 'blacklist iTCO_wdt' > /etc/modprobe.d/blacklist.conf
# install powertop on laptops
# install laptop/desktop specific content (powertop on laptops; ntp local service startup script on desktops)
if [ "$formfactor" == 2 ] || [ "$formfactor" == 1 ]; then
pacman -S powertop --needed --noconfirm
else
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/ntp-rclocal/20-ntp.start -o /etc/local.d/20-ntp.start
chmod 755 /etc/local.d/20-ntp.start
echo "0" > /etc/local.d/.ntpsync
fi
# set home directory permissions