2 ###########################################################################
3 # powerbook_backlight.sh, version 0.1.1
6 # This vlock plugin script switches off the backlight on Apple Powerbook
7 # laptops while locking. It requires the fblevel utility to be installed.
9 # Copyright (C) 2007 Rene Kuettner <rene@bitkanal.net>
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License as
13 # published by the Free Software Foundation; version 2.
15 # This program is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
25 ###########################################################################
32 while read hook_name
; do
33 case "${hook_name}" in
35 sudo fblevel off
>/dev
/null
38 sudo fblevel on
>/dev
/null
44 if [ $# -ne 1 ] ; then
45 echo >&2 "Usage: $0 <command>"
72 echo >&2 "$0: unknown command '$1'"