~ubuntu-branches/ubuntu/precise/nfs-utils/precise-proposed

« back to all changes in this revision

Viewing changes to debian/nfs-common.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Nathaniel McCallum
  • Date: 2004-09-10 13:10:39 UTC
  • Revision ID: james.westby@ubuntu.com-20040910131039-qxfjx4pwgoz6imbv
Tags: upstream-1.0.6
ImportĀ upstreamĀ versionĀ 1.0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
#DEBHELPER#
 
4
 
 
5
case "$1" in
 
6
    remove|purge)
 
7
        [ -x /etc/init.d/nfs-common ] &&
 
8
           /etc/init.d/nfs-common stop
 
9
        ;;
 
10
esac
 
11
 
 
12
if [ "$1" != upgrade ]
 
13
then
 
14
    rm -f /var/lib/nfs/sm/*      \
 
15
          /var/lib/nfs/sm.bak/*  \
 
16
          /var/lib/nfs/state
 
17
fi
 
18
 
 
19
exit 0