#!/usr/bin/sh set -e set -u VERSION=$(/usr/bin/zfs version | \ /usr/bin/grep --perl-regexp --only-matching '\d+\.\d+\.\d+' | \ /usr/bin/head --lines='1') if [ -z "${VERSION}" ]; then exit 1 fi if [ -f '/usr/lib/dkms/common.postinst' ]; then /usr/lib/dkms/common.postinst 'zfs' "${VERSION}" fi