freedombonee/tests/check-ctrl-alt-del.sh

11 lines
227 B
Bash
Raw Normal View History

#!/bin/bash
if [ -f /etc/systemd/system/ctrl-alt-del.target ];then
2016-11-30 16:43:31 +01:00
ctrl_alt_del=$(ls -l /etc/systemd/system/ctrl-alt-del.target)
if [[ "$ctrl_alt_del" != *"/dev/null" ]]; then
exit 1
2016-11-30 16:43:31 +01:00
fi
else
exit 1
fi