File: preinst

package info (click to toggle)
abcde 2.2.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 300 kB
  • ctags: 41
  • sloc: sh: 2,122; makefile: 64
file content (26 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# If:
# * this isn't an upgrade (a fresh install)
# * and /etc/cdgrab.conf exists
# * and /etc/abcde.conf doesn't
# copy /etc/cdgrab.conf to /etc/abcde.conf

if [ "$1" != "install" ]
then
	exit 0
fi
if [ "$2" != "" ]
then
	exit 0
fi
if [ -f /etc/abcde.conf ]
then
	exit 0
fi
if [ -r /etc/cdgrab.conf ]
then
	echo Copying old /etc/cdgrab.conf to /etc/abcde.conf...
	cp -a /etc/cdgrab.conf /etc/abcde.conf
	exit 0
fi
#DEBHELPER#