annotate debian/preinst @ 301:3b5b7f3fd71f noffle

[svn] initial debian/ upload
author godisch
date Fri, 14 Feb 2003 13:54:32 +0000
parents
children 85bf9f705e70
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
1 #!/bin/sh
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
2 # $Id: preinst 434 2003-02-14 13:54:32Z godisch $
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
5
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
6 case "$1" in
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
7 install|upgrade)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
8 # this directory may still exist because of old lock files,
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
9 # make sure the symlink can be installed
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
10 if [ -d /var/spool/noffle/lock ]; then
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
11 if [ -d /var/lock/noffle ]; then
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
12 rm -rf /var/spool/noffle/lock || :
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
13 else
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
14 mv /var/spool/noffle/lock /var/lock/noffle || :
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
15 fi
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
16 fi
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
17 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
18 abort-upgrade)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
19 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
20 *)
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
21 echo "preinst called with unknown argument '$1'" >&2
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
22 exit 1
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
23 ;;
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
24 esac
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
25
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
26 exit 0