postinst is in ekeyd 1.1.5-6.
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 | #!/bin/sh -e
invoke-rc.d --quiet udev reload || true
# Those using dependency based boot sequencing with sysv-rc and installing
# ekeyd-egd-linux before and including version 1.0.4-1 would have wrong
# runlevel symlinks. Recover from this.
if [ "$1" = "configure" ] && \
dpkg --compare-versions "$2" le "1.0.4-1" && \
[ -f /etc/rcS.d/S[0-9][0-9]ekeyd ] ; then
update-rc.d -f ekeyd remove
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/ekeyd" ] || [ -e "/etc/init/ekeyd.conf" ]; then
if [ ! -e "/etc/init/ekeyd.conf" ]; then
update-rc.d ekeyd defaults >/dev/null
fi
invoke-rc.d ekeyd start || exit $?
fi
# End automatically added section
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
if [ -e "/etc/udev/rules.d/z60_ekeyd.rules" ]; then
echo "Preserving user changes to /etc/udev/rules.d/40-ekeyd.rules ..."
if [ -e "/etc/udev/rules.d/40-ekeyd.rules" ]; then
mv -f "/etc/udev/rules.d/40-ekeyd.rules" "/etc/udev/rules.d/40-ekeyd.rules.dpkg-new"
fi
mv -f "/etc/udev/rules.d/z60_ekeyd.rules" "/etc/udev/rules.d/40-ekeyd.rules"
fi
fi
# End automatically added section
chmod 0600 /etc/entropykey/keyring || true
|