#!/bin/sh # Author: Ritesh Raj Sarraf # RESEARCHUT # Date: 28-11-2004 # Version: 1.1 SETKEYCODES=/usr/bin/setkeycodes # The keycodes can change with future kernel version. # So, better initialize them here :-) # For now the kernel has set keycodes for these. # So better not modify them. #MUTE=160 #VOL_LOW=174 #VOL_HIGH=176 # Lets assign keycodes for these. # The keycodes aren't matching to the keycodes # that xev reports. # There they've been matched CAREFULLY EMAIL="e01e 141" SEARCH="e01a 142" INTERNET="e023 143" LOCK="e00a 144" HELP="e031 145" # Here goes the code test -x $SETKEYCODES || exit 0 case "$1" in start | restart | force-reload | reload) $SETKEYCODES $EMAIL; $SETKEYCODES $SEARCH; $SETKEYCODES $INTERNET; $SETKEYCODES $LOCK; $SETKEYCODES $HELP; ;; stop) ;; *) echo "Usage: $0 {start|stop|restart|reload|force-reload}" exit 1 ;; esac