Only disable ctrl-alt-del once

This commit is contained in:
Bob Mottram 2017-08-05 23:00:46 +01:00
parent 259e061dcf
commit 7e24becb9c
1 changed files with 4 additions and 1 deletions

View File

@ -500,7 +500,10 @@ function set_sticky_bits {
}
function disable_ctrl_alt_del {
ln -sf /dev/null /etc/systemd/system/ctrl-alt-del.target
ctrl_alt_del=$(ls -l /etc/systemd/system/ctrl-alt-del.target)
if [[ "$ctrl_alt_del" != *'/dev/null' ]]; then
ln -sf /dev/null /etc/systemd/system/ctrl-alt-del.target
fi
}
function lockdown_permissions {