#!/bin/sh

# If we're rebooting after a panic, grab the kernel logs and put 'em
# where rdxd can upload them.
if grep -q 'lastboot=panic' /proc/cmdline; then
    mkdir -p /var/kernelpanics
    klog last > /var/kernelpanics/$(date +%s).txt 
fi
