summarylogtreecommitdiffstats
path: root/nvidia-utils-vulkan-developer-beta.install
diff options
context:
space:
mode:
authorwhoseos2017-02-23 02:46:49 +0100
committerwhoseos2017-02-23 02:46:49 +0100
commit12ea59b388d77c14d2ec48dd0d433e1c61dc8983 (patch)
tree62fa8fb4b7866a414c9436a69a32b8a9dfd1887b /nvidia-utils-vulkan-developer-beta.install
parent4744bbf2b7aa8bb2b02f8ba12ae919bca03e338b (diff)
downloadaur-12ea59b388d77c14d2ec48dd0d433e1c61dc8983.tar.gz
Rename the package with developer keyword
This avoids a naming conflict between the dependent packages: - nvidia-utils-vulkan-developer-beta - nvidia-libgl-vulkan-developer-beta - opencl-nvidia-vulkan-developer-beta - lib32-nvidia-utils-vulkan-developer-beta - lib32-nvidia-libgl-vulkan-developer-beta - lib32-opencl-nvidia-vulkan-developer-beta - nvidia-vulkan-developer-beta The original packages were named without the keyword and pushed, but that was before I was stopped while trying to push the "nvidia-vulkan-beta" into an already existing repository without a corresponding package (404). So I added the developer keyword to all 7 packages. Sorry for the mess!
Diffstat (limited to 'nvidia-utils-vulkan-developer-beta.install')
-rw-r--r--nvidia-utils-vulkan-developer-beta.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/nvidia-utils-vulkan-developer-beta.install b/nvidia-utils-vulkan-developer-beta.install
new file mode 100644
index 000000000000..5c4c1cfa36dd
--- /dev/null
+++ b/nvidia-utils-vulkan-developer-beta.install
@@ -0,0 +1,10 @@
+post_upgrade() {
+ echo ":: If CUDA is unavailable, run 'nvidia-modprobe'."
+}
+
+post_install() {
+ getent group nvidia-persistenced &>/dev/null || groupadd -g 143 nvidia-persistenced
+ getent passwd nvidia-persistenced &>/dev/null || useradd -c 'NVIDIA Persistence Daemon' -u 143 -g nvidia-persistenced -d '/' -s /sbin/nologin nvidia-persistenced
+
+ post_upgrade
+}