| 1 |
#!/bin/sh |
| 2 |
case "$1" in |
| 3 |
configure) |
| 4 |
|
| 5 |
# CONFIGFILE=$(tempfile -m 644) |
| 6 |
CONFIGFILE=$(mktemp) |
| 7 |
chmod 644 $CONFIGFILE |
| 8 |
set -e |
| 9 |
. /usr/share/debconf/confmodule |
| 10 |
|
| 11 |
if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then |
| 12 |
|
| 13 |
db_get gcl@EXT@/default_gcl_ansi |
| 14 |
|
| 15 |
if [ "$RET" = "true" ] ; then |
| 16 |
DEFAULT_GCL_ANSI=t |
| 17 |
else |
| 18 |
DEFAULT_GCL_ANSI= |
| 19 |
fi |
| 20 |
|
| 21 |
db_get gcl@EXT@/default_gcl_prof |
| 22 |
|
| 23 |
if [ "$RET" = "true" ] ; then |
| 24 |
DEFAULT_GCL_PROF=y |
| 25 |
else |
| 26 |
DEFAULT_GCL_PROF= |
| 27 |
fi |
| 28 |
|
| 29 |
echo "DEFAULT_GCL_ANSI=$DEFAULT_GCL_ANSI" >> $CONFIGFILE |
| 30 |
echo "DEFAULT_GCL_PROF=$DEFAULT_GCL_PROF" >> $CONFIGFILE |
| 31 |
|
| 32 |
fi |
| 33 |
|
| 34 |
ucf --debconf-ok $CONFIGFILE /etc/default/gcl@EXT@ |
| 35 |
ucfr gcl@EXT@ /etc/default/gcl@EXT@ |
| 36 |
|
| 37 |
# chmod 644 /etc/default/gcl@EXT@ |
| 38 |
|
| 39 |
esac |
| 40 |
|
| 41 |
#DEBHELPER# |
| 42 |
|