diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-26 11:09:41 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-26 11:09:41 +0000 |
commit | 95c2d1cbda23a41cdf6e63520c7f0b825e63dd5b (patch) | |
tree | 06d3ffa4312e568c4157f69fe1bddaddec9bc497 /app/xlockmore/etc/xlock1.sh | |
parent | 3928433848e2d6a9356f3d438a14b32a4f87f660 (diff) |
Importing xlockmore 5.22
Diffstat (limited to 'app/xlockmore/etc/xlock1.sh')
-rw-r--r-- | app/xlockmore/etc/xlock1.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/xlockmore/etc/xlock1.sh b/app/xlockmore/etc/xlock1.sh new file mode 100644 index 000000000..c7b07c9b3 --- /dev/null +++ b/app/xlockmore/etc/xlock1.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# +# My lil' wrapper routine to execute a program, but only if it's +# not already running +# Sometimes xlock crashes when xautlock calls xlock when already running. +# +PROG=xlock + +TST=`ps aux | grep $PROG | grep -v grep` +if [ -z "$TST" ]; then + $PROG +fi |