#!/bin/sh
# 2026-11-06, for one boot: an oops inside s10e_dp_audio's insmod left a device lock held, and the kernel's
# device_shutdown() would wait on it until the hung-task panic. systemd-shutdown runs this with the filesystems
# already unmounted or read-only, so reboot past it (INFORM3 is armed: the reset lands in U-Boot, then Mobian).
# Inert on any boot where the module is not stuck loading.
[ "$1" = reboot ] || exit 0
grep -q '^s10e_dp_audio .* Loading ' /proc/modules || exit 0
echo b > /proc/sysrq-trigger
