#!/bin/sh
set -e


if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then

	update-alternatives --remove nvidia /usr/lib/nvidia/565.77-open
	update-alternatives --remove nvidia /usr/lib/nvidia/565.77
	dpkg-trigger --no-await register-glx-alternative-nvidia

fi


#DEBHELPER#