summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/options/ctrl-alt-del-action/node.def26
-rw-r--r--templates/system/options/node.def2
-rw-r--r--templates/system/options/reboot-on-panic/node.def10
3 files changed, 0 insertions, 38 deletions
diff --git a/templates/system/options/ctrl-alt-del-action/node.def b/templates/system/options/ctrl-alt-del-action/node.def
deleted file mode 100644
index a853b151..00000000
--- a/templates/system/options/ctrl-alt-del-action/node.def
+++ /dev/null
@@ -1,26 +0,0 @@
-type: txt
-
-help: Ctrl-Alt-Delete action
-
-default: "ignore"
-
-val_help: ignore; Ignore Ctrl-Alt-Delete
-val_help: reboot; Reboot VyOS
-val_help: poweroff; Poweroff VyOS
-
-syntax:expression: $VAR(@) in "ignore", "reboot", "poweroff"; "Value must be ignore, reboot, or poweroff"
-
-end:
- if [ $VAR(@) == "ignore" ]; then
- sudo sh -c "ln -sf /dev/null \
- /lib/systemd/system/ctrl-alt-del.target"
- elif [ $VAR(@) == "reboot" ]; then
- sudo sh -c "ln -sf /lib/systemd/system/reboot.target \
- /lib/systemd/system/ctrl-alt-del.target"
- elif [ $VAR(@) == "poweroff" ]; then
- sudo sh -c "ln -sf /lib/systemd/system/poweroff.target \
- /lib/systemd/system/ctrl-alt-del.target"
- fi
-
- # Reload systemd daemon for change to take effect
- sudo /bin/systemctl daemon-reload
diff --git a/templates/system/options/node.def b/templates/system/options/node.def
deleted file mode 100644
index a878887c..00000000
--- a/templates/system/options/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-priority: 400
-help: System options
diff --git a/templates/system/options/reboot-on-panic/node.def b/templates/system/options/reboot-on-panic/node.def
deleted file mode 100644
index f768d5ae..00000000
--- a/templates/system/options/reboot-on-panic/node.def
+++ /dev/null
@@ -1,10 +0,0 @@
-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\" "