This file is indexed.

prerm is in plymouth-disabler 0.1.

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
#!/bin/sh
#
MY_MANUAL="manual # PLYMOUTH_DISABLER"
MY_MANUAL_REGEX="manual[ 	]\+#[ 	]*PLYMOUTH_DISABLER"
# dpkg -L plymouth | sed -n -e 's,.conf$,,' -e 's,/etc/init/,,p' | sort
PLYMOUTH_JOBS="plymouth plymouth-log plymouth-ready plymouth-splash
   plymouth-stop plymouth-upstart-bridge"

set -e

if [ "$1" = "remove" -o "$1" = "purge" ]; then
   for job in $PLYMOUTH_JOBS; do
      cfg="/etc/init/$job.conf.override"
      [ -f "$cfg" ] || continue
      # remove the 'manual' entry that we added.
      sed -i "/${MY_MANUAL_REGEX}/d" "$cfg"
      # if .override is now empty, remove it.
      [ -s "$cfg" ] || rm -f "$cfg"
   done
fi