2016-11-29 13:37:48 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-11-30 17:04:05 +01:00
|
|
|
if [ -L /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)
|
2016-11-30 16:46:04 +01:00
|
|
|
if [[ "$ctrl_alt_del" != *'/dev/null' ]]; then
|
2016-11-29 13:37:48 +01:00
|
|
|
exit 1
|
2016-11-30 16:43:31 +01:00
|
|
|
fi
|
|
|
|
else
|
2016-11-30 17:04:05 +01:00
|
|
|
if [ -f /etc/systemd/system/ctrl-alt-del.target ];then
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-11-29 13:37:48 +01:00
|
|
|
fi
|