From d69c30ce72851aa72838934d9f02da918094fd70 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 16 Feb 2024 18:53:13 -0500 Subject: [PATCH] Number contents of /etc/local.d --- chrootInstall.sh | 12 ++++++------ install.sh | 2 +- programs/NVIDIA-FCKR/NVIDIA-FCKR | 6 +++--- .../{bashpower.start => 15-bashpower.start} | 0 programs/ntp-rclocal/{ntp.start => 20-ntp.start} | 0 5 files changed, 10 insertions(+), 10 deletions(-) rename programs/bashpower-g14/{bashpower.start => 15-bashpower.start} (100%) rename programs/ntp-rclocal/{ntp.start => 20-ntp.start} (100%) diff --git a/chrootInstall.sh b/chrootInstall.sh index 9c81daa..e90c5b6 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -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 diff --git a/install.sh b/install.sh index d3a64df..4d941e2 100755 --- a/install.sh +++ b/install.sh @@ -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" diff --git a/programs/NVIDIA-FCKR/NVIDIA-FCKR b/programs/NVIDIA-FCKR/NVIDIA-FCKR index 99953b8..a8c1851 100755 --- a/programs/NVIDIA-FCKR/NVIDIA-FCKR +++ b/programs/NVIDIA-FCKR/NVIDIA-FCKR @@ -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]" diff --git a/programs/bashpower-g14/bashpower.start b/programs/bashpower-g14/15-bashpower.start similarity index 100% rename from programs/bashpower-g14/bashpower.start rename to programs/bashpower-g14/15-bashpower.start diff --git a/programs/ntp-rclocal/ntp.start b/programs/ntp-rclocal/20-ntp.start similarity index 100% rename from programs/ntp-rclocal/ntp.start rename to programs/ntp-rclocal/20-ntp.start