summaryrefslogtreecommitdiff
path: root/templates/system/options/reboot-on-panic/node.def
blob: f768d5ae06da015053ac381ecb8163e4082f204c (plain)
1
2
3
4
5
6
7
8
9
10
type: bool
help: Reboot system on kernel panic
default: true
update:expression: "sudo sh -c \"if [ x$VAR(@) == xfalse ]; \
then \
  echo 0 > /proc/sys/kernel/panic; \
else \
  echo 60 > /proc/sys/kernel/panic; \
fi\" "
delete:expression: "sudo sh -c \"echo 60 > /proc/sys/kernel/panic\" "