X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fgrml-lock;h=9d63aaacc9ad6a71295a20164a87160921ac5011;hb=594106bdaed1436c748160234766e0fbb5f697db;hp=f3011e4bd298d416ebb13d9a7ab1600050619278;hpb=1c3c81bbdc94a03365aae409faed9442a804990f;p=grml-scripts.git diff --git a/usr_bin/grml-lock b/usr_bin/grml-lock index f3011e4..9d63aaa 100755 --- 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 - 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