summaryrefslogtreecommitdiff
path: root/templates/system/options/reboot-on-panic
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/options/reboot-on-panic')
-rw-r--r--templates/system/options/reboot-on-panic/node.def10
1 files changed, 2 insertions, 8 deletions
diff --git a/templates/system/options/reboot-on-panic/node.def b/templates/system/options/reboot-on-panic/node.def
index d84abc74..425f5a76 100644
--- a/templates/system/options/reboot-on-panic/node.def
+++ b/templates/system/options/reboot-on-panic/node.def
@@ -1,16 +1,10 @@
type: bool
help: "Configure if kernel panic causes reboot"
default: true
-create: "sh -c \"if [ x$(@) == xfalse ]; \
+update: "sudo 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\" "
+delete: "sudo sh -c \"echo 60 > /proc/sys/kernel/panic\" "