summaryrefslogtreecommitdiffstats
path: root/abs/core/nvidia-utils/nvidia-utils.install
blob: df17a32a0eed0217ddb6e6fc26d48e05cdeee364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}