pmaports/main/postmarketos-mkinitfs-hook-kernel-panic/00-kernel-panic.sh

9 lines
151 B
Bash
Raw Normal View History

#!/bin/sh
echo "PMOS DEBUG: kernel panic in 30s" > /dev/kmsg
sleep 30s
echo "PMOS DEBUG: kernel panic now" > /dev/kmsg
echo c > /proc/sysrq-trigger