This file is indexed.

config is in hddtemp 0.3-beta15-51.

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
#!/bin/sh 
# hddtemp package configuration script

set -e

conffile="/etc/default/hddtemp"

get_config_file()
{
	config_field=$1
	db_field=$2
	
	if [ -f "$conffile" ] ; then
   		VALUE="$(grep "^[ ]*$config_field" $conffile | sed -e "s/^$config_field *= *\"\(.*\)\"/\1/g")" 
		if [ -n "$VALUE" ] ; then
			db_set $db_field "$VALUE"
		fi
	fi		
}

# Source debconf library -- we have a Depends line
# to make sure it is there...
. /usr/share/debconf/confmodule
db_version 2.0

if [ "$1" = configure -o "$1" = reconfigure ] ; then
	db_input medium hddtemp/SUID_bit || true
	
	get_config_file SYSLOG hddtemp/syslog
	db_input medium hddtemp/syslog || true
	
	get_config_file DAEMON hddtemp/daemon
	get_config_file RUN_DAEMON hddtemp/daemon
	db_input high hddtemp/daemon || true
	
	db_go
	
	db_get hddtemp/daemon
	
	if [ "$RET" = "true" ] ; then
		get_config_file INTERFACE hddtemp/interface
		db_input high hddtemp/interface || true
		
		get_config_file PORT hddtemp/port
		db_input high hddtemp/port || true

		db_go
	fi
fi

exit 0