postrm is in dropbear-initramfs 2016.72-1.
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 | #! /bin/sh
set -e
[ "$1" = purge ] || exit 0
if [ -e /etc/initramfs-tools/etc/dropbear ]; then
rm -f /etc/initramfs-tools/etc/dropbear/dropbear_rsa_host_key
rm -f /etc/initramfs-tools/etc/dropbear/dropbear_dss_host_key
rm -f /etc/initramfs-tools/etc/dropbear/dropbear_ecdsa_host_key
rmdir --ignore-fail-on-non-empty /etc/initramfs-tools/etc/dropbear
fi
|