This file is indexed.

preinst is in brltty 5.5-4ubuntu2.

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

set -e

for i in brl-sk-all.ktb
do
	dpkg-maintscript-helper rm_conffile /etc/brltty/$i 4.4-9~ brltty -- "$@"
done

# Make sure the brltty systemd service is disabled when upgrading from xenial
# or earlier, and disable it if upgrading from 5.3.1-2ubuntu4.
if [ "$1" = "upgrade" ]; then
	if dpkg --compare-versions "$2" le "5.3.1-2ubuntu3"; then
		if [ -f /etc/default/brltty ]; then
			. /etc/default/brltty
		fi

		if [ -n "$RUN_BRLTTY" ] && [ "$RUN_BRLTTY" = "no" ]; then
			deb-systemd-helper disable brltty.service > /dev/null || true
		fi
	elif [ "$2" = "5.3.1-2ubuntu4" ]; then
		deb-systemd-helper disable brltty.service > /dev/null || true
	fi
fi