This file is indexed.

config is in irda-utils 0.9.18-14ubuntu2.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Debconf configuration script for irda-utils
# Copyright © 2004 Sebastian Henschel <shensche@debian.org>
# This file is hereby placed into the public domain.

PACKAGE="irda-utils"
CONFIG_OLD="/etc/irda.conf"

set -e
. /usr/share/debconf/confmodule || exit 0
db_capb backup


# do _not_ ask the questions when old package data still exists, because
# preinst has to retrieve the old values first.
if [ ! -e "$CONFIG_OLD" ]; then
    STATE=1
    LASTSTATE=5
    while [ $STATE -gt 0 -a $STATE -le $LASTSTATE ]; do
        case $STATE in
        1)
            db_input medium $PACKAGE/enable || true
        ;;
        2)
            db_input medium $PACKAGE/automatic || true
        ;;
        3)
            db_input medium $PACKAGE/discovery || true
        ;;
        4)
            db_input medium $PACKAGE/selectdevice || true
        ;;
        5)
            db_get $PACKAGE/selectdevice
            if [ "$RET" = "serial" ]; then
                db_input medium $PACKAGE/ttydev || true
                db_input medium $PACKAGE/dongle || true
            else
                db_input medium $PACKAGE/firdev || true
                db_input medium $PACKAGE/firopt || true
                db_input low $PACKAGE/setserial || true
            fi
        ;;
        esac

        if db_go; then
            STATE=$(($STATE + 1))
        else
            STATE=$(($STATE - 1))
        fi
    done
fi