# arg 1: the new package version pre_install() { # # do pre-install stuff here # /bin/true } # arg 1: the new package version post_install() { # # do post-install stuff here # /bin/true } # arg 1: the new package version # arg 2: the old package version pre_upgrade() { # # do pre-upgrade stuff here # /bin/true } # arg 1: the new package version # arg 2: the old package version post_upgrade() { # # do post-upgrade stuff here # echo "" echo "=============================================================" echo "" echo "UWAGA!" echo "Ewentualne komunikaty o niemożno¶ci usunięcia i rozpakowania" echo "plików podczas aktualizacji pakietu dev nie maj± żadnego " echo "wpływu na działanie systemu i mog± być zignorowane." echo "" echo "=============================================================" echo "" /bin/true } # arg 1: the old package version pre_remove() { # # do pre-remove stuff here # /bin/true } # arg 1: the old package version post_remove() { # # do post-remove stuff here # /bin/true } op=$1 shift $op $*