# 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 "UWAGA! Pakiet iptables został zmieniony! " echo "Dodano nowe opcje uruchamiania firewalla, zmieniono zachowanie" echo "opcji 'stop', dodano konfigurator przekierowań portów, dodano " echo "mozliwość uruchomienia maskarady dla wybranych adresów IP." echo "" echo "Więcej o wprowadzonych zmianach można przeczytać w pliku: " echo "/usr/share/iptables/firewall.txt " 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 $*