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