#! /bin/sh BIN=/usr/bin/xscreensaver-command CMD="$1" test -x "$BIN" || exit 0 test "x$CMD" = "x" && exit 0 . /usr/local/sbin/ibm-common.sh eval $(get_display) check_display || exit 0 export DISPLAY if test "x$CMD" = "x0"; then su $USER -c "$BIN -lock 2>&1" else su $USER -c "$BIN -deactivate 2>&1" fi exit 0