301
|
1 #!/bin/sh
|
|
2 # $Id: preinst 434 2003-02-14 13:54:32Z godisch $
|
|
3
|
|
4 set -e
|
|
5
|
|
6 case "$1" in
|
|
7 install|upgrade)
|
|
8 # this directory may still exist because of old lock files,
|
|
9 # make sure the symlink can be installed
|
|
10 if [ -d /var/spool/noffle/lock ]; then
|
|
11 if [ -d /var/lock/noffle ]; then
|
|
12 rm -rf /var/spool/noffle/lock || :
|
|
13 else
|
|
14 mv /var/spool/noffle/lock /var/lock/noffle || :
|
|
15 fi
|
|
16 fi
|
|
17 ;;
|
|
18 abort-upgrade)
|
|
19 ;;
|
|
20 *)
|
|
21 echo "preinst called with unknown argument '$1'" >&2
|
|
22 exit 1
|
|
23 ;;
|
|
24 esac
|
|
25
|
|
26 exit 0
|