#! /bin/sh # # clavier t'nb multimedia script # Permet de configurer les touches supplementaires. # # Author: Remi Suinot . # # # Version: @(#)skeleton 2.85-23 28-Jul-2004 miquels@cistron.nl # Version script: 13 Sept. 2005 set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="configuration clavier" NAME=clavier-tnb # Read config file if it is present. #if [ -r /etc/default/$NAME ] #then # . /etc/default/$NAME #fi # # Function that starts the daemon/service. # d_start() { # touche 'plage précédente 'musique)' /usr/bin/setkeycodes e011 224 # touche 'pause' 'lecture' /usr/bin/setkeycodes e012 225 # touche 'augmenter volume' /usr/bin/setkeycodes e013 226 # touche 'Close' /usr/bin/setkeycodes e014 227 # touche 'User' /usr/bin/setkeycodes e017 228 # touche 'baisser volume' /usr/bin/setkeycodes e018 229 # touche 'stop musique' 'eject' /usr/bin/setkeycodes e01e 230 # touche 'plage suivante 'musique)' /usr/bin/setkeycodes e01f 231 # touche 'mute' (coupure son) /usr/bin/setkeycodes e023 232 # touche 'Dos' /usr/bin/setkeycodes e025 233 # touche 'Help' /usr/bin/setkeycodes e026 234 # touche 'email' /usr/bin/setkeycodes e027 235 # touche 'www' /usr/bin/setkeycodes e028 236 # touche 'menu' /usr/bin/setkeycodes e02c 237 # touche 'Mess.' /usr/bin/setkeycodes e02d 238 # touche 'CD' /usr/bin/setkeycodes e02f 239 # touche 'Search' /usr/bin/setkeycodes e031 240 } # # Function that stops the daemon/service. # d_stop() { echo -n "impossible de stoper actuellement." } case "$1" in start) echo -n "Starting $DESC: $NAME" d_start echo "." ;; stop) echo -n "Stopping $DESC: $NAME" d_stop echo "." ;; restart|force-reload) # # If the "reload" option is implemented, move the "force-reload" # option to the "reload" entry above. If not, "force-reload" is # just the same as "restart". # echo -n "Restarting $DESC: $NAME" d_stop # One second might not be time enough for a daemon to stop, # if this happens, d_start will fail (and dpkg will break if # the package is being upgraded). Change the timeout if needed # be, or change d_stop to have start-stop-daemon use --retry. # Notice that using --retry slows down the shutdown process somewhat. sleep 1 d_start echo "." ;; *) # echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0