home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / var / lib / dpkg / info / iptables.postinst < prev    next >
Encoding:
Text File  |  2006-03-17  |  972 b   |  38 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. #clean-up 1.2.6-a{1,2} posinst error
  5. foo="/etc/init.d/iptables exists"
  6. if test -f /1; then
  7.   if grep -q "$foo" /1; then
  8.     rm -f /1
  9.   fi
  10. fi
  11.  
  12. # iptables 1.2.7-8 dumped debconf
  13. if [ -e /usr/share/debconf/confmodule ]; then
  14.         . /usr/share/debconf/confmodule
  15.         db_purge
  16. fi
  17.  
  18. # remove ugly alternatives hack for owner match
  19.  
  20. if [ -x /usr/sbin/update-alternatives ]; then
  21.   update-alternatives --remove \
  22.     libipt_owner.so /lib/iptables/libipt_owner.so+pre-2.4.20
  23.   update-alternatives --remove \
  24.     libipt_owner.so /lib/iptables/libipt_owner.so+post-2.4.20
  25. fi
  26.  
  27. # Automatically added by dh_installdocs
  28. if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
  29.     install-docs -i /usr/share/doc-base/packet-filter
  30. fi
  31. # End automatically added section
  32. # Automatically added by dh_installdocs
  33. if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
  34.     install-docs -i /usr/share/doc-base/nat
  35. fi
  36. # End automatically added section
  37.  
  38.