summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-18 18:34:19 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-18 18:35:34 +0100
commit66ec730d3bc54379bc558c90c45d5f97e5760a14 (patch)
tree1f95e98fb539cab1f2b6a1eb33718885ea8c5e15 /src
parent13d76e69cc43cae0570cc5fab1ee02fdec33aa17 (diff)
downloadvyos-1x-66ec730d3bc54379bc558c90c45d5f97e5760a14.tar.gz
vyos-1x-66ec730d3bc54379bc558c90c45d5f97e5760a14.zip
options: T3231: bugfix ctrl-alt-delete option was not working
Bug introduced in commit 193323ba5d (system: T3078: rename "system options" -> "system option") as the new key used in the dict was not migrated.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/system-option.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/system-option.py b/src/conf_mode/system-option.py
index 212afc125..454611c55 100755
--- a/src/conf_mode/system-option.py
+++ b/src/conf_mode/system-option.py
@@ -87,10 +87,10 @@ def apply(options):
# Ctrl-Alt-Delete action
if os.path.exists(systemd_action_file):
os.unlink(systemd_action_file)
- if 'ctrl_alt_del' in options:
- if options['ctrl_alt_del'] == 'reboot':
+ if 'ctrl_alt_delete' in options:
+ if options['ctrl_alt_delete'] == 'reboot':
os.symlink('/lib/systemd/system/reboot.target', systemd_action_file)
- elif options['ctrl_alt_del'] == 'poweroff':
+ elif options['ctrl_alt_delete'] == 'poweroff':
os.symlink('/lib/systemd/system/poweroff.target', systemd_action_file)
# Configure HTTP client