This file is indexed.

preinst is in mgetty-fax 1.1.36-2ubuntu1.

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

action=$1
version=$2

case $action in
  upgrade|install )
    if [ -n "$version" ] && dpkg --compare-versions "$version" lt 1.1.28-1
    then
      # Log files should go in /var/log/mgetty
      if [ -f /var/log/acct.log ]; then
	  echo "Moving /var/log/acct.log to /var/log/mgetty..."
	  mv /var/log/acct.log /var/log/mgetty/
      fi
      if [ -f /var/log/faxrunqd.log ]; then
	  echo "Moving /var/log/faxrunqd.log to /var/log/mgetty..."
	  mv /var/log/faxrunqd.log /var/log/mgetty/
      fi
    fi
  ;;
esac