debug-trigger: Do what we can to debug unresponsive systems
debug-trigger is a small daemon which translates an external signal that
the system is unresponsive into a system crash for debug data
collection.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ic04f1a95aaf651d56b75f5261d8a6f76d34477a7
diff --git a/udev/rules.d/p10bmc-debug-trigger-kcs4.rules b/udev/rules.d/p10bmc-debug-trigger-kcs4.rules
new file mode 100644
index 0000000..248a0dd
--- /dev/null
+++ b/udev/rules.d/p10bmc-debug-trigger-kcs4.rules
@@ -0,0 +1,2 @@
+ACTION=="add", DEVPATH=="*/1e789114.kcs/*", SUBSYSTEM=="serio", RUN{program}+="/bin/sh -c 'echo -n serio_raw > /sys%p/drvctl'"
+ACTION=="add", DEVPATH=="*/1e789114.kcs/*", SUBSYSTEMS=="serio", SUBSYSTEM=="misc", TAG+="systemd", ENV{SYSTEMD_WANTS}+="debug-trigger@"