# arg 1: the old package version pre_remove() { # clean up after ourselves # /bin/rm -rf /var/log/uptimed } op=$1 shift $op $*