File: config

package info (click to toggle)
cltl 1.0.25
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 116 kB
  • ctags: 6
  • sloc: sh: 143; makefile: 44; lisp: 6
file content (34 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download | duplicates (4)
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
27
28
29
30
31
32
33
34
#!/bin/sh 

set -e

. /usr/share/debconf/confmodule

ARCHIVE=/root/tmp/cltl_ht.tgz

okay()
{
    test -s ${ARCHIVE} && gzip --test --quiet ${ARCHIVE} > /dev/null 2>&1
}

if test "$1" = "reconfigure" ; then
    db_reset cltl/downloading
fi

case "$1" in
    configure|reconfigure)
	set +e
	okay
	if [ $? != 0 ]; then
	    db_input medium cltl/downloading
	    db_go
	fi
	set -e
	;;
    *) 
	echo "config called with invalid option" >&2
	exit 0
	;;
esac

exit 0