mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-05 16:37:17 -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
|
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/ntp.start -o /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/ntp.start
|
chmod 755 /etc/local.d/20-ntp.start
|
||||||
echo "0" > /etc/local.d/.ntpsync
|
echo "0" > /etc/local.d/.ntpsync
|
||||||
|
|
||||||
# networkmanager configuration
|
# 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/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/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
|
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
|
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/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
|
chown -R "$username":users /home/"$username"/.config/autostart /home/"$username"/.config/krunnerrc /home/"$username"/.config/baloofilerc /home/"$username"/.config/ksmserverrc
|
||||||
|
|
||||||
# asus g14 2020 configuration
|
# asus g14 2020 configuration
|
||||||
if [ "$formfactor" == 1 ]; then
|
if [ "$formfactor" == 1 ]; then
|
||||||
echo 'options snd_hda_intel power_save=1' > /etc/modprobe.d/audio_powersave.conf
|
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
|
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
|
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
|
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
|
NVIDIA-FCKR integrated
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
loadkeys us
|
loadkeys us
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo rwinkhart\'s artix install script
|
echo rwinkhart\'s artix install script
|
||||||
echo last updated february 16, 2024 \(rev. A\)
|
echo last updated february 16, 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"
|
||||||
|
|||||||
@@ -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
|
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
|
# 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
|
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/NVIDIA-FCKR.start
|
chmod +x /etc/local.d/10-NVIDIA-FCKR.start
|
||||||
echo 'Following the next reboot, only the integrated GPU will be used.'
|
echo 'Following the next reboot, only the integrated GPU will be used.'
|
||||||
elif [ "$1" == 'hybrid' ]; then
|
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.'
|
echo 'Following the next reboot, both GPUs will be enabled.'
|
||||||
else
|
else
|
||||||
echo -e "invalid argument: $1\nusage: NVIDIA-FCKR [integrated/hybrid]"
|
echo -e "invalid argument: $1\nusage: NVIDIA-FCKR [integrated/hybrid]"
|
||||||
|
|||||||
Reference in New Issue
Block a user