mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-08-27 20:36:26 -04:00
Number contents of /etc/local.d
This commit is contained in:
+6
-6
@@ -20,8 +20,8 @@ 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/ntp.start -o /etc/local.d/ntp.start
|
||||
chmod 755 /etc/local.d/ntp.start
|
||||
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
|
||||
@@ -141,18 +141,18 @@ echo -e "[Desktop Entry]\nExec=/usr/local/bin/pipewire-start.sh\nIcon=\nName=pip
|
||||
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
|
||||
chmod 755 /usr/local/bin/powerset.sh /usr/local/bin/pipewire-start.sh /usr/local/bin/histclean /etc/local.d/trim.start
|
||||
echo -e "#!/bin/sh\nfstrim -Av &" > /etc/local.d/99-trim.start
|
||||
chmod 755 /usr/local/bin/powerset.sh /usr/local/bin/pipewire-start.sh /usr/local/bin/histclean /etc/local.d/99-trim.start
|
||||
chown -R "$username":users /home/"$username"/.config/autostart /home/"$username"/.config/krunnerrc /home/"$username"/.config/baloofilerc /home/"$username"/.config/ksmserverrc
|
||||
|
||||
# asus g14 2020 configuration
|
||||
if [ "$formfactor" == 1 ]; then
|
||||
echo 'options snd_hda_intel power_save=1' > /etc/modprobe.d/audio_powersave.conf
|
||||
echo 'vm.dirty_writeback_centisecs = 6000' > /etc/sysctl.d/dirty.conf
|
||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/bashpower-g14/bashpower.start -o /etc/local.d/bashpower.start
|
||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/bashpower-g14/15-bashpower.start -o /etc/local.d/15-bashpower.start
|
||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/NVIDIA-FCKR/NVIDIA-FCKR -o /usr/local/bin/NVIDIA-FCKR
|
||||
pacman -S mesa vulkan-icd-loader vulkan-radeon libva-mesa-driver libva-utils acpi_call --needed --noconfirm
|
||||
chmod 755 /etc/local.d/bashpower.start /usr/local/bin/NVIDIA-FCKR
|
||||
chmod 755 /etc/local.d/15-bashpower.start /usr/local/bin/NVIDIA-FCKR
|
||||
NVIDIA-FCKR integrated
|
||||
fi
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
loadkeys us
|
||||
echo ----------------------------------------------------------------------------------------------
|
||||
echo rwinkhart\'s artix install script
|
||||
echo last updated february 16, 2024 \(rev. A\)
|
||||
echo last updated february 16, 2024 \(rev. B\)
|
||||
echo ----------------------------------------------------------------------------------------------
|
||||
echo You will be asked some questions before installation.
|
||||
echo -e "----------------------------------------------------------------------------------------------\n"
|
||||
|
||||
@@ -26,11 +26,11 @@ ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300"
|
||||
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"' > /lib/udev/rules.d/50-NVIDIA-FCKR.rules
|
||||
|
||||
# disable GPU via acpi_call on next boot
|
||||
echo -e '#!/usr/bin/env bash\necho '"'\_SB.PCI0.GPP0.PG00._OFF'"' > /proc/acpi/call' > /etc/local.d/NVIDIA-FCKR.start
|
||||
chmod +x /etc/local.d/NVIDIA-FCKR.start
|
||||
echo -e '#!/usr/bin/env bash\necho '"'\_SB.PCI0.GPP0.PG00._OFF'"' > /proc/acpi/call' > /etc/local.d/10-NVIDIA-FCKR.start
|
||||
chmod +x /etc/local.d/10-NVIDIA-FCKR.start
|
||||
echo 'Following the next reboot, only the integrated GPU will be used.'
|
||||
elif [ "$1" == 'hybrid' ]; then
|
||||
rm -rf /etc/modprobe.d/NVIDIA-FCKR.conf /lib/udev/rules.d/50-NVIDIA-FCKR.rules /etc/local.d/NVIDIA-FCKR.start
|
||||
rm -rf /etc/modprobe.d/NVIDIA-FCKR.conf /lib/udev/rules.d/50-NVIDIA-FCKR.rules /etc/local.d/10-NVIDIA-FCKR.start
|
||||
echo 'Following the next reboot, both GPUs will be enabled.'
|
||||
else
|
||||
echo -e "invalid argument: $1\nusage: NVIDIA-FCKR [integrated/hybrid]"
|
||||
|
||||
Reference in New Issue
Block a user