prerm is in rinputd 1.0.5-2.
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 | #!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/rinputd" ]; then
invoke-rc.d rinputd stop || exit $?
fi
# End automatically added section
CUR_VERSION=`dpkg-query -W -f='${Version}' rinputd`
if [ "$1" = "upgrade" -a "$2" = "$CUR_VERSION" ] || [ "$1" = "remove" ]; then
. /usr/share/debconf/confmodule
db_get rinputd/username
USER="$RET"
if [ "$1" = "remove" ]; then
db_purge
fi
saslpasswd2 -d -u rinput "$USER" 2>/dev/null || :
fi
|