HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //var/lib/dpkg/info/iptables-persistent.preinst
#!/bin/sh

set -e


case "$1" in
    install|upgrade)
	if dpkg --compare-versions "$2" le "0.5.2"; then
	    update-rc.d -f iptables-persistent remove
	fi
    if [ -e /etc/iptables/rules ]; then
        if [ -e /etc/iptables/rules.v4 ]; then
            mv -f /etc/iptables/rules /etc/iptables/rules.v4.dpkg-old
        else
            mv -f /etc/iptables/rules /etc/iptables/rules.v4
        fi
    fi
	;;

    abort-upgrade)
	;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
	;;
esac

# Automatically added by dh_installdeb/12.10ubuntu1
dpkg-maintscript-helper rm_conffile /etc/init.d/iptables-persistent 1\~ -- "$@"
# End automatically added section