#!/bin/bash function post_pkg_postinst() { if ! mountpoint -q /boot; then mount /boot trap "umount /boot" EXIT fi patch -d /lib/udev -p0 < /dev/null + sleep 1.5 + /opt/bin/nvidia-smi -pm 1 > /dev/null fi ;; remove|REMOVE) EOF dracut --kver "$(readlink -f /usr/src/linux | sed 's/^.*linux-//')" --force --host-only }