This file is indexed.

prerm is in munin-plugins-c 0.0.11-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
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

set -e

case "$1" in

remove)
    for plugin in /etc/munin/plugins/*;
    do
        # no plugins at all then break
        if [  $plugin = "/etc/munin/plugins/*" ]; then break; fi

        if [ $(readlink $plugin) = "/usr/lib/munin-c/plugins/munin-plugins-c" ];
        then
            # remove link to munin-plugins-c
            rm $plugin

            plugin_name=$(basename $plugin)

            # check if there is a traditional munin plugin
            # and activate it
            if [ -e /usr/share/munin/plugins/$plugin_name ];
            then
                 ln -s /usr/share/munin/plugins/$plugin_name $plugin
            fi
        fi
    done
;;

esac