diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 07e30de8..c8962404 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -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 {