Release new version 2.13.0
[grml-scripts.git] / usr_bin / caps-ctrl
index dfaec76..824ddd1 100755 (executable)
@@ -6,10 +6,17 @@
 # License:       This file is licensed under the GPL v2.
 ################################################################################
 
-if . /etc/grml/script-functions ; then
-   check4progs xmodmap loadkeys dumpkeys || exit 1
+if [[ -f /etc/grml/script-functions ]] ; then
+       source /etc/grml/script-functions && \
+       check4progs xmodmap loadkeys dumpkeys || exit 1
+fi
+if [[ -f /etc/grml/lsb-functions ]] ; then
+       source /etc/grml/lsb-functions
+else
+       einfo() { echo  "$*" ; }
+       eerror() { echo "$*" ; }
+       eend() { echo "$*" ; }
 fi
-. /etc/grml/lsb-functions || ( alias einfo=echo ; alias eerror=echo; alias eend=echo )
 
 emulate zsh