#! /bin/sh CONF_FILE="/etc/default/grub.d/disable-init-on-alloc.cfg" set -e case "$1" in remove|purge) rm -f ${CONF_FILE} /usr/sbin/update-grub ||: ;; esac # Automatically added by dh_systemd_start/11.1.6ubuntu2 if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true fi # End automatically added section # Automatically added by dh_systemd_enable/11.1.6ubuntu2 if [ "$1" = "remove" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper mask 'nvidia-disable-init-on-alloc.service' >/dev/null || true fi fi if [ "$1" = "purge" ]; then if [ -x "/usr/bin/deb-systemd-helper" ]; then deb-systemd-helper purge 'nvidia-disable-init-on-alloc.service' >/dev/null || true deb-systemd-helper unmask 'nvidia-disable-init-on-alloc.service' >/dev/null || true fi fi # End automatically added section