summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-01-03 02:17:04 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-01-03 02:17:04 (GMT)
commit5600de9fc4ff3949c14fb1124ee893c23aad32a4 (patch)
treeaeb560905ad4ab6123caca6e45a7c33f66bcf970 /abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install
parent76c0c300ffe2f913497bf60cb23acfc6984e5a9f (diff)
downloadlinhes_pkgbuild-5600de9fc4ff3949c14fb1124ee893c23aad32a4.zip
linhes_pkgbuild-5600de9fc4ff3949c14fb1124ee893c23aad32a4.tar.gz
linhes_pkgbuild-5600de9fc4ff3949c14fb1124ee893c23aad32a4.tar.bz2
nvidia-340xx-utils: initial inclusion 340.65
Diffstat (limited to 'abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install')
-rw-r--r--abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install b/abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install
new file mode 100644
index 0000000..df17a32
--- /dev/null
+++ b/abs/core/nvidia-340xx-utils/nvidia-340xx-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
+}