~ubuntu-branches/ubuntu/warty/iptables/warty

« back to all changes in this revision

Viewing changes to debian/iptables.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Laurence J. Lane
  • Date: 2004-06-15 20:38:42 UTC
  • Revision ID: james.westby@ubuntu.com-20040615203842-o4o634vwht1cix5k
Tags: 1.2.9-10
* Closes: #246037, added default logging level to man pages, requested
  by Max Vozeler. Thanks.
* conslidated all man page patches to 003-man_pages.patch.
* added 006-64_32.patch, CVS pull, Sparc64 and HPPA makefile clean up
  for 64/32-bit builds. Reported by Igor Genibel. Thanks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#DEBHELPER#