Move additional scripts to 'extra' directory
This commit is contained in:
5
extra/88-gsr-coolbits.conf
Normal file
5
extra/88-gsr-coolbits.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
Section "Device"
|
||||
Identifier "Device0"
|
||||
Driver "nvidia"
|
||||
Option "Coolbits" "12"
|
||||
EndSection
|
||||
1
extra/gsr-nvidia.conf
Normal file
1
extra/gsr-nvidia.conf
Normal file
@@ -0,0 +1 @@
|
||||
options nvidia NVreg_PreserveVideoMemoryAllocations=1
|
||||
10
extra/install_coolbits.sh
Executable file
10
extra/install_coolbits.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
script_dir=$(dirname "$0")
|
||||
cd "$script_dir"
|
||||
|
||||
[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
|
||||
|
||||
for xorg_conf_d in "/etc/X11/xorg.conf.d" "/usr/share/X11/xorg.conf.d" "/usr/lib/X11/xorg.conf.d"; do
|
||||
[ -d "$xorg_conf_d" ] && install -Dm644 "88-gsr-coolbits.conf" "$xorg_conf_d/88-gsr-coolbits.conf" && exit 0
|
||||
done
|
||||
8
extra/install_preserve_video_memory.sh
Executable file
8
extra/install_preserve_video_memory.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
script_dir=$(dirname "$0")
|
||||
cd "$script_dir"
|
||||
|
||||
[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
|
||||
|
||||
install -Dm644 gsr-nvidia.conf /etc/modprobe.d/gsr-nvidia.conf
|
||||
Reference in New Issue
Block a user