From 594106bdaed1436c748160234766e0fbb5f697db Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 16 May 2007 22:35:54 +0200 Subject: [PATCH] grml-lock: allow using it on grml-small too --- debian/changelog | 7 +++++++ usr_bin/grml-lock | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 14aec67..aa9cf0a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-scripts (1.0.1) unstable; urgency=low + + * grml-lock: allow using it on grml-small too. Thanks for + information, Niklas Schnelle! + + -- Michael Prokop Wed, 16 May 2007 22:35:29 +0200 + grml-scripts (1.0.0) unstable; urgency=low * We have a new stable release! 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 -- 2.1.4