This file is indexed.

postinst is in friendly-recovery 0.2.25.

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
    configure)
        if [ -d /usr/share/recovery-mode ] &&
           [ ! -L /usr/share/recovery-mode ]; then
            # Move any existing recovery script
            mv -n /usr/share/recovery-mode/options/* /lib/recovery-mode/options/ 2> /dev/null || true

            # Remove what's left
            rm -Rf /usr/share/recovery-mode
        fi

        # And finally replace it by a symlink
        ln -sf /lib/recovery-mode /usr/share/recovery-mode

        # Update grub
        if [ -e /boot/grub/grub.cfg ] && [ -x "$(which update-grub)" ]; then
            update-grub
        fi
    ;;
esac

# Automatically added by dh_installinit
update-rc.d -f friendly-recovery remove >/dev/null || exit $?
# End automatically added section


exit 0