mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-06 08:57:13 -04:00
Only install ntp local service startup script on desktops
This commit is contained in:
+5
-4
@@ -20,9 +20,6 @@ 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 "$timezone" /etc/localtime
|
ln -s "$timezone" /etc/localtime
|
||||||
locale-gen
|
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
|
# networkmanager configuration
|
||||||
pacman -S networkmanager-openrc --noconfirm
|
pacman -S networkmanager-openrc --noconfirm
|
||||||
@@ -105,9 +102,13 @@ fi
|
|||||||
# disable kernel watchdog
|
# disable kernel watchdog
|
||||||
echo 'blacklist iTCO_wdt' > /etc/modprobe.d/blacklist.conf
|
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
|
if [ "$formfactor" == 2 ] || [ "$formfactor" == 1 ]; then
|
||||||
pacman -S powertop --needed --noconfirm
|
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
|
fi
|
||||||
|
|
||||||
# set home directory permissions
|
# set home directory permissions
|
||||||
|
|||||||
+2
-2
@@ -3,14 +3,14 @@
|
|||||||
loadkeys us
|
loadkeys us
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo rwinkhart\'s Artix Install Script
|
echo rwinkhart\'s Artix Install Script
|
||||||
echo last updated August 26, 2024 \(rev. A\)
|
echo last updated August 26, 2024 \(rev. B\)
|
||||||
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"
|
||||||
read -n 1 -s -r -p 'Press any key to continue'
|
read -n 1 -s -r -p 'Press any key to continue'
|
||||||
|
|
||||||
# start simple questions
|
# 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
|
read -n 1 -r -p "Formfactor: " formfactor
|
||||||
|
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user