nvidia-driver-565/nvidia-graphics-drivers-565/debian/xserver-xorg-video-nvidia-565.postrm

29 lines
694 B
Plaintext
Raw Permalink Normal View History

2024-10-22 17:05:20 +02:00
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
warn_about_remaining_xorg_configuration()
{
# allow to disable the check via preseeding
db_get nvidia-support/check-xorg-conf-on-removal || true
test "$RET" = "true" || return 0
XORG_CONF=$(grep -l '^[^#]*nvidia' /etc/X11/xorg.conf /etc/X11/xorg.conf.d/*.conf 2>/dev/null || true)
test -n "$XORG_CONF" || return 0
db_subst nvidia-support/removed-but-enabled-in-xorg-conf config-files "$XORG_CONF"
db_fset nvidia-support/removed-but-enabled-in-xorg-conf seen false
db_input high nvidia-support/removed-but-enabled-in-xorg-conf || true
db_go
}
if [ "$1" = "remove" ]; then
warn_about_remaining_xorg_configuration
fi
#DEBHELPER#