From 5c7776b2e4c8192c97a10226675dd81f7ef3555e Mon Sep 17 00:00:00 2001 From: FIFARenderZ Date: Tue, 13 Apr 2021 20:12:55 +0200 Subject: [PATCH] Added a license notification --- auto-install.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 auto-install.sh diff --git a/auto-install.sh b/auto-install.sh new file mode 100644 index 0000000..4b4bdae --- /dev/null +++ b/auto-install.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# This file is part of the "vgpu_unlock" project, and is distributed under the MIT License. +# See the LICENSE file for more details. + +help_func() +{ + echo "To make installing easier" +} + +fixup_services() +{ + sed -i "s|ExecStart=/usr/bin/nvidia-vgpud|ExecStart=$PWD/vgpu_unlock /usr/bin/nvidia-vgpud|g" /lib/systemd/system/nvidia-vgpud.service + sed -i "s|ExecStart=/usr/bin/nvidia-vgpu-mgr|ExecStart=$PWD/vgpu_unlock /usr/bin/nvidia-vgpu-mgr|g" /lib/systemd/system/nvidia-vgpu-mgr.service + systemctl daemon-reload + exit 1 +} + +fixup_driver() +{ + +} + +while getopts ":v:" option; do + case "${option}" in + v) + v=${OPTARG} + ;; + *) + help_function + ;; + esac +done +shift $((OPTIND-1))