This file is indexed.

postinst is in oss-compat 6.

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
52
53
54
55
56
57
#!/bin/sh
set -e

case "$1" in
  configure)
    case "`uname -s`" in
      Linux)
        # Pre-wheezy versions of the package shipped a symlink from
        # /etc/modprobe.d to /lib/oss-compat, so when upgrading and
        # finding a symlink we must replace the link with a copy.
        # The wheezy version of the package shipped a configuration
        # file with md5sum 88222606b0a3ba8b0825c5000c754e6f which
        # should be replaced with the new file.
        # Anything else must be left alone (policy requires changes
        # to configuration to be preserved).
        curconffile=/etc/modprobe.d/oss-compat.conf
        oldconffile=/etc/modprobe.d/oss-compat
        if [ ! -f ${curconffile} -o -L ${curconffile} ]; then
          if [ -L ${curconffile} ]; then
            # Upgrading from .conf link
            curlinktgt=$(readlink -f ${curconffile})
            rm -f ${curconffile}
            cp ${curlinktgt} ${curconffile}
          elif [ -L ${oldconffile} ]; then
            # Upgrading from extension-less link
            curlinktgt=$(readlink -f ${oldconffile})
            cp ${curlinktgt} ${curconffile}
          elif [ -f ${oldconffile} ]; then
            # Upgrading from extension-less file
            cp ${oldconffile} ${curconffile}
          else
            # Installing from scratch
            cp /lib/oss-compat/linux ${curconffile}
          fi
        fi
        # Cleanup extension-less configuration link
        [ -L ${oldconffile} ] && rm -f ${oldconffile}
        # Wheezy configuration file (using install directives)
        [ -f ${curconffile} ] && [ "$(md5sum ${curconffile} | cut -d\  -f1)" = "88222606b0a3ba8b0825c5000c754e6f" ] && cp /lib/oss-compat/linux ${curconffile}

        if lsmod | grep -q "^snd " ; then
          modprobe snd || true
        fi
      ;;
    esac
  ;;
  abort-upgrade|abort-remove|abort-deconfigure)
  ;;
  *)
    echo "postinst called with unknown argument \`$1'" >&2
    exit 1
  ;;
esac



exit 0