#!/bin/sh ######################################################################## # Begin $rc_base/init.d/acerhk # # Description : Lance le service pour les acer hotkey # # Authors : geantbrun # # Version : 00.00 # # Notes : # ######################################################################## . /etc/sysconfig/rc . ${rc_functions} case "${1}" in start) boot_mesg "Starting Acer Hotkey Wireless LED..." if [ ! -f /proc/driver/acerhk/wirelessled ]; then echo_failure else echo 1 > /proc/driver/acerhk/wirelessled echo_ok fi;; stop) boot_mesg "Stopping Acer Hotkey Wireless LED..." if [ ! -f /proc/driver/acerhk/wirelessled ]; then echo_failure else echo 0 > /proc/driver/acerhk/wirelessled echo_ok fi;; restart) ${0} stop sleep 1 ${0} start ;; *) echo "Usage: ${0} {start|stop|restart}" exit 1 ;; esac # End $rc_base/init.d/acerhk