# arg 1: the new package version pre_install () { echo "" } pre_upgrade () { echo "" } post_install () { FILES="/sbin/reboot.init /sbin/poweroff.init /usr/sbin/reboot.init /usr/sbin/poweroff.init" for i in $FILES do [ -h $i ] && rm -f $i done true } # arg 1: the new package version # arg 2: the old package version post_upgrade(){ post_install } op=$1 shift $op $*