This file is indexed.

preinst is in owfs-common 3.1p1-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
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
set -e

last=
for i in $(ls /etc/modprobe.d/libow-*-*.conf 2>/dev/null)
do
  if test "$(md5sum < "$i")" \
	!= "9c0ce25c8de4426c2dff7738ccf67f96  -"; then
    # a file has been modified. We will keep it.
    last="$i".dpkg-old
  fi
  # removing old config files for previous ow libraries
  # (they will be really removed when the package will be purged)
  mv "$i" "$i".dpkg-old
done

if [ -n "$last" ]; then
  # We try to keep user modifications
  cp -a "$last" /etc/modprobe.d/libow-common.conf
fi

# Automatically added by dh_installmodules
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/modprobe.d/owfs-common" ]; then
		if [ "`md5sum \"/etc/modprobe.d/owfs-common\" | sed -e \"s/ .*//\"`" = \
		     "`dpkg-query -W -f='${Conffiles}' owfs-common | sed -n -e \"\\\\' /etc/modprobe.d/owfs-common '{s/ obsolete$//;s/.* //p}\"`" ]
		then
			rm -f "/etc/modprobe.d/owfs-common"
		fi
	fi
fi
# End automatically added section