5 #debconf could be purged
6 if [ -e /usr
/share
/debconf
/confmodule
] ; then
7 .
/usr
/share
/debconf
/confmodule
10 rm -f /etc
/default
/grub
12 if which ucf
>/dev
/null
; then
13 ucf
--purge /etc
/default
/grub
15 if which ucfr
>/dev
/null
; then
16 ucfr
--purge grub-pc
/etc
/default
/grub
19 db_input high grub-pc
/purge_boot_grub || true
21 db_get grub-pc
/purge_boot_grub || true
22 if [ "$RET" = "true" ] ; then
23 rm -f /boot
/grub
/{grub.cfg
,ascii.pf2
,unicode.pf2
,moreblue-orbit-grub.png
,*.mod
,*.lst
,*.img
} || true
24 rmdir /boot
/grub
2>/dev
/null || true
27 remove|upgrade|failed-upgrade|abort-upgrade|abort-install
)
30 echo "postrm called with unknown argument \`$1'" >&2
35 # dh_installdeb will replace this with shell code automatically
36 # generated by other debhelper scripts.