summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia-utils/nvidia-utils.install
diff options
context:
space:
mode:
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
+}