This file is indexed.

postinst is in pcscd 1.7.4-2ubuntu2.

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
#!/bin/sh

set -e

OLDCFGFILE=/etc/reader.conf
CFGDIR=/var/lib/pcscd
CFGFILE="$CFGDIR/reader.conf"

# /etc/reader.conf is no more used
if [ -f $OLDCFGFILE ]; then
	mv $OLDCFGFILE $OLDCFGFILE.old
fi

# remove /var/lib/pcscd
if [ -d $CFGDIR ]; then
	rm -rf $CFGDIR
fi

# create the pcscd group
addgroup --system pcscd --quiet

# set guid pcscd for pcscd
chgrp pcscd /usr/sbin/pcscd
chmod g+s /usr/sbin/pcscd

# Automatically added by dh_installinit
if [ -x "/etc/init.d/pcscd" ]; then
	if [ ! -e "/etc/init/pcscd.conf" ]; then
		update-rc.d pcscd defaults >/dev/null
	fi
	invoke-rc.d pcscd start || exit $?
fi
# End automatically added section