Improve check for ctrl-alt-del
This commit is contained in:
parent
b106d14890
commit
d4c07b2cc8
|
@ -1,10 +1,12 @@
|
||||||
#!/bin/bash
|
#!/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)
|
ctrl_alt_del=$(ls -l /etc/systemd/system/ctrl-alt-del.target)
|
||||||
if [[ "$ctrl_alt_del" != *'/dev/null' ]]; then
|
if [[ "$ctrl_alt_del" != *'/dev/null' ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
exit 1
|
if [ -f /etc/systemd/system/ctrl-alt-del.target ];then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue