diff options
Diffstat (limited to 'templates/system/options')
-rw-r--r-- | templates/system/options/node.def | 1 | ||||
-rw-r--r-- | templates/system/options/reboot-on-panic/node.def | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/templates/system/options/node.def b/templates/system/options/node.def new file mode 100644 index 00000000..1e49ee5b --- /dev/null +++ b/templates/system/options/node.def @@ -0,0 +1 @@ +help: "Configure system options" diff --git a/templates/system/options/reboot-on-panic/node.def b/templates/system/options/reboot-on-panic/node.def new file mode 100644 index 00000000..d84abc74 --- /dev/null +++ b/templates/system/options/reboot-on-panic/node.def @@ -0,0 +1,16 @@ +type: bool +help: "Configure if kernel panic causes reboot" +default: true +create: "sh -c \"if [ x$(@) == xfalse ]; \ +then \ + echo 0 > /proc/sys/kernel/panic; \ +else \ + echo 60 > /proc/sys/kernel/panic; \ +fi\" " +update: "sh -c \"if [ x$(@) == xfalse ]; \ +then \ + echo 0 > /proc/sys/kernel/panic; \ +else \ + echo 60 > /proc/sys/kernel/panic; \ +fi\" " +delete: "sh -c \"echo 60 > /proc/sys/kernel/panic\" " |