Only disable ctrl-alt-del once
This commit is contained in:
parent
259e061dcf
commit
7e24becb9c
|
@ -500,7 +500,10 @@ function set_sticky_bits {
|
||||||
}
|
}
|
||||||
|
|
||||||
function disable_ctrl_alt_del {
|
function disable_ctrl_alt_del {
|
||||||
|
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
|
ln -sf /dev/null /etc/systemd/system/ctrl-alt-del.target
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function lockdown_permissions {
|
function lockdown_permissions {
|
||||||
|
|
Loading…
Reference in New Issue