This file is indexed.

preinst is in bluez 5.37-0ubuntu5.

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

set -e

case "$1" in
install|upgrade)

  if dpkg-maintscript-helper supports rm_conffile; then
    for conffile in \
        "/etc/bluetooth/network.service" \
        "/etc/bluetooth/serial.service" \
        "/etc/bluetooth/input.service"; do
            dpkg-maintscript-helper \
                rm_conffile "${conffile}" 3.30-1 bluez-utils -- "$@"
    done
    dpkg-maintscript-helper rm_conffile \
        /etc/dbus-1/system.d/bluez-hcid.conf 3.7-1 bluez-utils -- "$@"

    for conffile in \
        /etc/bluetooth/rfcomm.conf \
        /etc/bluetooth/serial.conf \
        /etc/bluetooth/audio.conf; do \
            dpkg-maintscript-helper \
                rm_conffile ${conffile} 5.21-2 bluez -- "$@"
    done
  fi

  if dpkg-maintscript-helper supports mv_conffile; then
    dpkg-maintscript-helper mv_conffile \
      /etc/dbus-1/system.d/bluez-hcid.conf \
      /etc/dbus-1/system.d/bluetooth.conf 3.7-1 bluez -- "$@"

    dpkg-maintscript-helper mv_conffile \
        /etc/modprobe.d/bluez /etc/modprobe.d/bluez.conf 4.42-1 bluez -- "$@"
  fi
esac