X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fcaps-ctrl;h=824ddd1a1fde0968a6c3d28c9e247848af269120;hb=5b0c6b200fe0a76b7a78c984733defdb3120ea6a;hp=dfaec760c76ce176b1edc4cb78c0b6a9292311dc;hpb=4905c02154da76a8ce549a397302fe296573e1c3;p=grml-scripts.git diff --git a/usr_bin/caps-ctrl b/usr_bin/caps-ctrl index dfaec76..824ddd1 100755 --- a/usr_bin/caps-ctrl +++ b/usr_bin/caps-ctrl @@ -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