~ubuntu-branches/debian/wheezy/autofs/wheezy

« back to all changes in this revision

Viewing changes to debian/autofs.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2008-03-08 01:36:09 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080308013609-cvs4f2ecoyoism02
Tags: 4.1.4+debian-2.1
* Non-maintainer upload.
* High-urgency upload for RC bugfix.
* Add -DLDAP_DEPRECATED to CFLAGS, to fix compatibility with OpenLDAP
  2.4 on 64-bit architectures.  Closes: #463419.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
[ -f /etc/default/autofs ] && . /etc/default/autofs
 
4
 
 
5
if [ "$1" = "failed-upgrade" ]; then
 
6
        set +e
 
7
fi
 
8
 
 
9
if [ -x "/etc/init.d/autofs" ]; then
 
10
        if [ "$1" = "remove" -o -z "$AUTOFS_DONT_RESTART_ON_UPGRADES" ]; then
 
11
                invoke-rc.d autofs stop
 
12
        fi
 
13
fi
 
14
 
 
15
#DEBHELPER#
 
16
exit 0