screenlock: Check that lock program is not running
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user