3 PATH
=/bin
:/sbin
:/usr
/bin
:/usr
/sbin
:/usr
/local
/bin
:/usr
/local
/sbin
6 PROGPATH
=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
7 REVISION
=`echo '$Revision: 2 $' | sed -e 's/[^0-9.]//g'`
14 echo "Usage: $PROGNAME /dev/js<#> <button #>"
18 print_revision
$PROGNAME $REVISION
22 echo "This plugin checks a joystick button status using the "
23 echo "joyreadbutton utility from the joyd package."
44 print_revision
$PROGNAME $REVISION
48 print_revision
$PROGNAME $REVISION
52 joyreadbutton
$1 $2 1>&1 1>/dev
/null
54 if [ "$STATUS" -eq 0 ]; then
57 elif [ "$STATUS" -eq 1 ];then