This file is indexed.

postinst is in gsm-utils 1.10+20120414.gita5e5ae9a-0.1.

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

# create gsmsms group if necessary.
if ! grep -q ^gsmsms: /etc/group; then
#      echo Adding system group: gsmsms.
       addgroup --system gsmsms
fi

# create gsmsms user if necessary.
if ! grep -q ^gsmsms: /etc/passwd; then
#        echo Adding system user: gsmsms.
        adduser --system --ingroup gsmsms \
                --no-create-home --home /var/spool/sms gsmsms
fi

# allow gsmsms to use serial lines
if ! groups gsmsms | grep -q dialout ; then
        adduser gsmsms dialout
fi

# echo Updating spool directory structure: /var/spool/sms
chown -R gsmsms:gsmsms /var/spool/sms
chmod 700 /var/spool/sms/*
chmod 750 /var/spool/sms
chmod 730 /var/spool/sms/queue* /var/spool/sms/tmp

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