If the input CDROM is a file, check for the file.
[clinton/abcde.git] / debian / preinst
1 #!/bin/sh
2 # If:
3 # * this isn't an upgrade (a fresh install)
4 # * and /etc/cdgrab.conf exists
5 # * and /etc/abcde.conf doesn't
6 # copy /etc/cdgrab.conf to /etc/abcde.conf
7
8 if [ "$1" != "install" ]
9 then
10 exit 0
11 fi
12 if [ "$2" != "" ]
13 then
14 exit 0
15 fi
16 if [ -f /etc/abcde.conf ]
17 then
18 exit 0
19 fi
20 if [ -r /etc/cdgrab.conf ]
21 then
22 echo Copying old /etc/cdgrab.conf to /etc/abcde.conf...
23 cp -a /etc/cdgrab.conf /etc/abcde.conf
24 exit 0
25 fi
26 #DEBHELPER#