projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
grml-lock: allow using it on grml-small too
[grml-scripts.git]
/
usr_bin
/
grml-lock
diff --git
a/usr_bin/grml-lock
b/usr_bin/grml-lock
index
f3011e4
..
9d63aaa
100755
(executable)
--- a/
usr_bin/grml-lock
+++ b/
usr_bin/grml-lock
@@
-11,7
+11,11
@@
PN=$0
if [ -r /etc/grml/script-functions ] ; then
. /etc/grml/script-functions
if [ -r /etc/grml/script-functions ] ; then
. /etc/grml/script-functions
- check4progs vlock xlock sudo chpasswd dialog || { echo "Sorry, can't continue. Exiting.">&2 ; exit 1 }
+ if [ -x /usr/bin/X ] ; then
+ check4progs vlock xlock sudo chpasswd dialog || { echo "Sorry, can't continue. Exiting.">&2 ; exit 1 }
+ else
+ check4progs sudo chpasswd dialog || { echo "Sorry, can't continue. Exiting.">&2 ; exit 1 }
+ fi
fi
if [ -r /etc/grml_version ] ; then
fi
if [ -r /etc/grml_version ] ; then