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
+2 -2
View File
@@ -3,14 +3,14 @@
loadkeys us
echo ----------------------------------------------------------------------------------------------
echo rwinkhart\'s Artix Install Script
echo last updated August 26, 2024 \(rev. A\)
echo last updated August 26, 2024 \(rev. B\)
echo ----------------------------------------------------------------------------------------------
echo You will be asked some questions before installation.
echo -e "----------------------------------------------------------------------------------------------\n"
read -n 1 -s -r -p 'Press any key to continue'
# start simple questions
echo -e '\nSpecial devices:\n1. ASUS Zephyrus G14 (2020)\nGeneric:\n2. Laptop\n3. Desktop\n4. Headless\n'
echo -e '\nSpecial devices:\n1. ASUS Zephyrus G14 (2020)\nGeneric:\n2. Laptop\n3. Desktop\n4. Headless desktop\n'
read -n 1 -r -p "Formfactor: " formfactor
echo -e "\n"