# arg 1: the new package version post_install() { sed -i 's/^#pop3/pop3/' /etc/inetd.conf } # arg 1: the new package version # arg 2: the old package version post_upgrade() { /bin/true } # arg 1: the old package version pre_remove() { /bin/true } # arg 1: the old package version post_remove() { sed -i 's/^pop3/#pop3/' /etc/inetd.conf } op=$1 shift $op $*