Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
- 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
- # Automatically added by dh_installdeb
- dpkg-maintscript-helper rm_conffile /etc/acpi/events/fglrx-lid 1:12-1-2~ -- "$@"
- # End automatically added section
- # Automatically added by dh_installdeb
- dpkg-maintscript-helper rm_conffile /etc/acpi/events/fglrx-ac 1:12-1-2~ -- "$@"
- # End automatically added section
- # Automatically added by dh_installdeb
- dpkg-maintscript-helper rm_conffile /etc/acpi/fglrx-powermode.sh 1:12-1-3~ -- "$@"
- # End automatically added section
- # Automatically added by dh_installdebconf
- if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
- . /usr/share/debconf/confmodule
- db_purge
- fi
- # End automatically added section
Advertisement
Add Comment
Please, Sign In to add comment