aboutsummaryrefslogtreecommitdiff
path: root/install_preserve_video_memory.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install_preserve_video_memory.sh')
-rwxr-xr-xinstall_preserve_video_memory.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/install_preserve_video_memory.sh b/install_preserve_video_memory.sh
new file mode 100755
index 0000000..c5cf658
--- /dev/null
+++ b/install_preserve_video_memory.sh
@@ -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