#!/bin/sh
set -e

PREREQ=""

prereqs()
{
    echo "$PREREQ"
}

case "$1" in
    prereqs)
        prereqs
        exit 0
        ;;
esac

# Keep ipmi-hwmon out of the initramfs. The module is intentionally loaded
# after the root filesystem has been mounted.
mkdir -p "${DESTDIR}/etc/modprobe.d"
echo "blacklist ipmi-hwmon" > "${DESTDIR}/etc/modprobe.d/blacklist-ipmi-hwmon.conf"

exit 0
