Improve check for ctrl-alt-del
This commit is contained in:
parent
b106d14890
commit
d4c07b2cc8
|
@ -1,10 +1,12 @@
|
|||
#!/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
|
||||
|
|
Loading…
Reference in New Issue