Skip to content
Snippets Groups Projects
Commit d4c07b2c authored by Bob Mottram's avatar Bob Mottram
Browse files

Improve check for ctrl-alt-del

parent b106d148
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [ -f /etc/systemd/system/ctrl-alt-del.target ];then
if [ -L /etc/systemd/system/ctrl-alt-del.target ];then
ctrl_alt_del=$(ls -l /etc/systemd/system/ctrl-alt-del.target)
if [[ "$ctrl_alt_del" != *'/dev/null' ]]; then
exit 1
fi
else
exit 1
if [ -f /etc/systemd/system/ctrl-alt-del.target ];then
exit 1
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment