File: config

package info (click to toggle)
cltl 1.1.0
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 148 kB
  • sloc: sh: 147; makefile: 5
file content (31 lines) | stat: -rwxr-xr-x 456 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
#!/bin/sh 

set -e

. /usr/share/debconf/confmodule

ARCHIVE=/var/cache/cltl/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)
	if ! okay ; then
	    db_input medium cltl/downloading || true
	    db_go || true
	fi
	;;
    *) 
	echo "config called with invalid option" >&2
	exit 0
	;;
esac

exit 0