grml-lock: allow using it on grml-small too
authorMichael Prokop <mika@grml.org>
Wed, 16 May 2007 20:35:54 +0000 (22:35 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 16 May 2007 20:35:54 +0000 (22:35 +0200)
debian/changelog
usr_bin/grml-lock

index 14aec67..aa9cf0a 100644 (file)
@@ -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 <mika@grml.org>  Wed, 16 May 2007 22:35:29 +0200
+
 grml-scripts (1.0.0) unstable; urgency=low
 
   * We have a new stable release!
 grml-scripts (1.0.0) unstable; urgency=low
 
   * We have a new stable release!
index f3011e4..9d63aaa 100755 (executable)
@@ -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