This file is indexed.

preinst is in smstools 3.1.15-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
#!/bin/sh
set -e

# The following is a workaround that is needed for version 3.0-1 because its init
# script is sometimes not working properly. This would result in zombie processes
# after installation, or even worse it could fail the installation
# Also here is a fix for version 
if [ "$1" = 'upgrade' ]; then
        if dpkg --compare-versions "$2" eq 3.0-1 ; then
                start-stop-daemon --stop -x /usr/sbin/smsd -R 30 --signal -9
                if test -f /var/run/smsd.pid ; then rm /var/run/smsd.pid; fi
	fi
fi