diff options
Diffstat (limited to 'templates/system')
-rw-r--r-- | templates/system/options/ctrl-alt-del-action/node.def | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/system/options/ctrl-alt-del-action/node.def b/templates/system/options/ctrl-alt-del-action/node.def index 8ee98ce8..8a5ed9d5 100644 --- a/templates/system/options/ctrl-alt-del-action/node.def +++ b/templates/system/options/ctrl-alt-del-action/node.def @@ -8,6 +8,8 @@ val_help: disable; Disable Ctrl-Alt-Delete val_help: reboot; Reboot VyOS val_help: poweroff; Poweroff VyOS +syntax:expression: $VAR(@) in "disable", "reboot", "poweroff"; "Value must be disable, reboot, or poweroff" + end: if [ $VAR(@) == "disable" ]; then sudo sh -c "sed -i -e 's/^ca.*/ca:12345:ctrlaltdel:/' \ |