3
3
. /usr/share/debconf/confmodule
6
# BUG: If you upgrade atftp and you previously configured it with debconf,
7
# that is, the atftpd/configure value in the database is set to true,
8
# then the config script will overwrite the config in inetd.conf with
9
# all values from the database. This could be avoided (or so I thought)
10
# by setting the atftpd/configure value to false in the event db_input
11
# had returned false but this causes the config value to be ignored if
12
# the package is being preconfigured. In such a case, the config script
13
# is called twice, the first time it shows the question and returns
14
# true but the second it doesn't show the question and would return
15
# false, which results in the atftpd/configure value being set to false
16
# and makes the config value being ignore despite the fact the user
17
# answered them (#93398). I didn't find any better way to work around
21
db_input high atftpd/configure || true
25
db_get atftpd/configure
26
if [ "$RET" = "true" ]; then
6
# Do not ask if you need to configure atftp (Bug#266329)
9
#db_input high atftpd/configure || true
13
#db_get atftpd/configure
14
#if [ "$RET" = "true" ]; then
29
17
db_input medium atftpd/use_inetd || true
35
23
if [ "$RET" = "true" ]; then
37
db_input medium atftpd/tftpd-timeout || true
25
db_input low atftpd/tftpd-timeout || true
43
db_input medium atftpd/port || true
44
db_input medium atftpd/retry-timeout || true
45
db_input medium atftpd/maxthread || true
46
db_input medium atftpd/timeout || true
47
db_input medium atftpd/tsize || true
48
db_input medium atftpd/blksize || true
49
db_input medium atftpd/multicast || true
31
db_input low atftpd/port || true
32
db_input low atftpd/retry-timeout || true
33
db_input low atftpd/maxthread || true
34
db_input low atftpd/timeout || true
35
db_input low atftpd/tsize || true
36
db_input low atftpd/blksize || true
37
db_input low atftpd/multicast || true
53
41
db_get atftpd/multicast
54
42
if [ "$RET" = "true" ]; then
56
db_input medium atftpd/mcast_port || true
44
db_input low atftpd/mcast_port || true
57
45
db_input medium atftpd/mcast_addr || true
46
db_input medium atftpd/ttl || true
63
db_input medium atftpd/verbosity || true
52
db_input low atftpd/verbosity || true
64
53
db_input medium atftpd/basedir || true
65
db_input medium atftpd/logtofile || true
54
db_input low atftpd/logtofile || true
69
58
db_get atftpd/logtofile
70
59
if [ "$RET" = "true" ]; then
72
db_input medium atftpd/logfile || true
61
db_input low atftpd/logfile || true