mirror of
https://github.com/DualCoder/vgpu_unlock.git
synced 2024-06-02 18:34:45 +12:00
Added a license notification
This commit is contained in:
parent
86f0124f31
commit
5c7776b2e4
34
auto-install.sh
Normal file
34
auto-install.sh
Normal file
|
@ -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))
|
Loading…
Reference in a new issue