This file is indexed.

preinst is in zfs-zed 0.7.5-1ubuntu15.

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

case "$1" in
  install|upgrade)
    SRC=/etc/zfs/zed.d/zed-functions.sh
    #
    #  If an existing zed-functions is a symlink then this
    #  needs removing as the script in newer ZFS releases
    #  is no longer symlink'd and we want to upgrade to
    #  the newer script.  Silently purge this.
    #
    if [ -L $SRC ]; then
        rm $SRC
    fi
    ;;
esac



exit 0