summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia-utils/nvidia-utils.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-01-03 02:08:48 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-01-03 02:08:48 (GMT)
commitaf4b4f4841690a1fdcc586196b0341f521cc43e4 (patch)
tree1f0402b2b9d8d2937e4ce86a829c5dd295cd927b /abs/core/nvidia-utils/nvidia-utils.install
parentc0607e961b6e151f5fa9a0f1b1103d0082e39ed9 (diff)
downloadlinhes_pkgbuild-af4b4f4841690a1fdcc586196b0341f521cc43e4.zip
linhes_pkgbuild-af4b4f4841690a1fdcc586196b0341f521cc43e4.tar.gz
linhes_pkgbuild-af4b4f4841690a1fdcc586196b0341f521cc43e4.tar.bz2
nvidia-utils: update to 343.36
Diffstat (limited to 'abs/core/nvidia-utils/nvidia-utils.install')
-rw-r--r--abs/core/nvidia-utils/nvidia-utils.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/core/nvidia-utils/nvidia-utils.install b/abs/core/nvidia-utils/nvidia-utils.install
new file mode 100644
index 0000000..df17a32
--- /dev/null
+++ b/abs/core/nvidia-utils/nvidia-utils.install
@@ -0,0 +1,14 @@
+post_install() {
+ if ! getent group nvidia-persistenced >/dev/null; then
+ groupadd -g 143 nvidia-persistenced
+ fi
+ if ! getent passwd nvidia-persistenced >/dev/null; then
+ useradd -c 'NVIDIA Persistence Daemon' -u 143 -g nvidia-persistenced -d '/' -s /sbin/nologin nvidia-persistenced
+ fi
+}
+
+post_remove() {
+ if getent group nvidia-persistenced >/dev/null; then
+ userdel -f nvidia-persistenced
+ fi
+}