123456789101112
  1. #!/bin/bash
  2. if [ -L /etc/systemd/system/ctrl-alt-del.target ];then
  3. ctrl_alt_del=$(ls -l /etc/systemd/system/ctrl-alt-del.target)
  4. if [[ "$ctrl_alt_del" != *'/dev/null' ]]; then
  5. exit 1
  6. fi
  7. else
  8. if [ -f /etc/systemd/system/ctrl-alt-del.target ];then
  9. exit 1
  10. fi
  11. fi