postrm is in setserial 2.17-49.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | #! /bin/sh
set -e
package="setserial"
if [ purge = "$1" ]; then
update-rc.d setserial remove >/dev/null
update-rc.d etc-setserial remove >/dev/null
if [ -e /var/lib/setserial/etc.serial.conf.bkp ] ; then
rm -f /var/lib/setserial/etc.serial.conf.bkp
fi
if [ -e /var/lib/setserial/autoserial.conf ] ; then
rm -f /var/lib/setserial/autoserial.conf
fi
if [ -e /var/lib/setserial/autoserial.conf.old ] ; then
rm -f /var/lib/setserial/autoserial.conf.old
fi
fi
if [ -f /usr/share/debconf/confmodule ]; then # debconf exists
. /usr/share/debconf/confmodule
# HHH update-modules removed
# if [ -x /sbin/update-modules ]; then
# #db_get setserial/usemodup
# #if [ "$RET" = "true" ]; then
# if ! /sbin/update-modules ; then
# # cannot easily tell the user there was a problem, so silently ignore it
# WHOCARES=0;
# fi
# #fi
# fi
fi
#ENDOF DEBCONF
#if [ -x /sbin/update-modules ]; then
# mv /etc/modules.conf /etc/modules.conf.old.$package
# if ! /sbin/update-modules ; then
# mv /etc/modules.conf.old.$package /etc/modules.conf
# else
# mv /etc/modules.conf /etc/modules.conf.new.$package
# mv /etc/modules.conf.old.$package /etc/modules.conf
# ucf /etc/modules.conf.new.$package /etc/modules.conf
# fi
#fi
# Automatically added by dh_systemd_enable
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mask setserial.service >/dev/null
fi
fi
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper purge setserial.service >/dev/null
deb-systemd-helper unmask setserial.service >/dev/null
fi
fi
# 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
|