Added xlockmore to suggests, added check for vlock in grml-lock.
[grml-scripts.git] / usr_bin / grml-lock
index 2d75050..e6e50e1 100755 (executable)
@@ -4,11 +4,16 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Sam Mai 27 15:12:24 CEST 2006 [mika]
+# Latest change: Son Mär 18 16:41:49 CET 2007 [mika]
 ################################################################################
 
 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 }
+fi
+
 if [ -r /etc/grml_version ] ; then
 else
   dialog --stdout --title "$PN" --msgbox "Warning: this system does not look like a grml-system