#!/bin/sh
# Staged file only. 00- prefix runs ahead of the initramfs udev coldplug script.
PREREQ=""
prereqs() { echo "$PREREQ"; }
case "${1:-}" in prereqs) prereqs; exit 0 ;; esac
case " $(cat /proc/cmdline) " in
    *" gpu_unlock.targets=0000:04:00.0 "*)
        # Do not unlock again automatically after suspend/resume.
        modprobe gpu_unlock resume=0 || echo "Athena GPU unlock failed; inspect kernel log." >&2
        ;;
esac
