summaryrefslogtreecommitdiff
path: root/templates/system/options/reboot-on-panic/node.def
blob: d16df48ccd51866e4256438b2436d644ecba32dc (plain)
1
2
3
4
5
6
7
8
9
10
type: bool
help: Configure if kernel panic causes reboot
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\" "