screenlock: Check that lock program is not running

This commit is contained in:
2022-06-10 14:10:11 +02:00
parent c04369fffa
commit ebbe573f95

View File

@ -27,6 +27,13 @@ echo "screenlock not configured for this system"
exit 1
{% end %}
# check if lock program is running
if ps -e | grep " $LOCKPROG$"; then
echo "$LOCKPROG is already running!"
exit 1
fi
for CMD in $OPTIONAL_CMDS; do
if ! command -v "$CMD" &> /dev/null
then