File: fglrx-driver.postrm

package info (click to toggle)
fglrx-driver 1:15.9-4~deb8u1~bpo70+1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy-backports
  • size: 505,568 kB
  • sloc: ansic: 15,231; xml: 4,141; sh: 2,401; makefile: 425
file content (37 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
set -e

. /usr/share/debconf/confmodule

warn_about_remaining_xorg_configuration()
{
	# allow to disable the check via preseeding
	db_get fglrx-driver/check-xorg-conf-on-removal || true
	test "$RET" = "true" || return 0

	XORG_CONF=$(grep -l '^[^#]*fglrx' /etc/X11/xorg.conf /etc/X11/xorg.conf.d/*.conf 2>/dev/null || true)

	test -n "$XORG_CONF" || return 0

	db_subst fglrx-driver/removed-but-enabled-in-xorg-conf config-files "$XORG_CONF"
	db_fset fglrx-driver/removed-but-enabled-in-xorg-conf seen false
	db_input high fglrx-driver/removed-but-enabled-in-xorg-conf || true
	db_go

}

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

	warn_about_remaining_xorg_configuration

fi

if [ "$1" = "purge" ]; then

	if [ -f /etc/ati/amdpcsdb ]; then
		rm /etc/ati/amdpcsdb
	fi

fi

#DEBHELPER#