diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-01-03 02:17:04 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-01-03 02:17:04 (GMT) |
commit | 5600de9fc4ff3949c14fb1124ee893c23aad32a4 (patch) | |
tree | aeb560905ad4ab6123caca6e45a7c33f66bcf970 /abs/core/nvidia-340xx-utils/nvidia-340xx-utils.install | |
parent | 76c0c300ffe2f913497bf60cb23acfc6984e5a9f (diff) | |
download | linhes_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.install | 14 |
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 +} |