diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-18 18:34:19 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-18 18:36:52 +0100 |
commit | 0743cb3533ded0929950aac217302dec111d5b5c (patch) | |
tree | 7ea88b8ea4f56bc8a9e9686c371344158d2f9a9f /src/conf_mode | |
parent | d59d66e732a96ac605d921ed37ddd6bfbdfaf082 (diff) | |
download | vyos-1x-0743cb3533ded0929950aac217302dec111d5b5c.tar.gz vyos-1x-0743cb3533ded0929950aac217302dec111d5b5c.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.
(cherry picked from commit 66ec730d3bc54379bc558c90c45d5f97e5760a14)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/system-option.py | 6 |
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 |