~ubuntu-branches/ubuntu/saucy/xinetd/saucy

« back to all changes in this revision

Viewing changes to debian/xinetd.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Habouzit
  • Date: 2008-03-26 17:46:54 UTC
  • mfrom: (3.1.4 hardy)
  • Revision ID: james.westby@ubuntu.com-20080326174654-s1oh9go9sali6nd7
Tags: 1:2.3.14-7
Update init.d to test if ipv6 support is built in the kernel before
activating it by default (Closes: 472755).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
if test "$1" = "upgrade"; then
 
4
    # version 1:2.3.14-3 is the first one to provide inet-superserver
 
5
    if dpkg --compare-versions "$2" lt-nl 1:2.3.14-3; then
 
6
        rm -f /etc/init.d/inetd
 
7
        dpkg-divert --package xinetd --remove --rename \
 
8
            --divert /etc/init.d/inetd.real /etc/init.d/inetd
 
9
    fi
 
10
fi
 
11
 
 
12
#DEBHELPER#