reboot linux kernel on panic after x seconds
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 19 Oct 2010 21:41:12 +0000 (21:41 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 19 Oct 2010 21:41:12 +0000 (21:41 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@231 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/linux-kernel/panic-reboot.sh [new file with mode: 0755]

diff --git a/recepies/linux-kernel/panic-reboot.sh b/recepies/linux-kernel/panic-reboot.sh
new file mode 100755 (executable)
index 0000000..d90e972
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh -x
+
+cat /proc/sys/kernel/panic
+echo 10 > /proc/sys/kernel/panic