3 # chkconfig: 2345 27 73
4 # description: apmiser is used for monitoring system usage when on batteries, \
5 # scaling the CPU voltage down via tpctl when idle to save power.
8 # We can't run without acpi:
9 [ -e /proc/acpi ] || exit
11 # If toshiba_acpi doesn't exist, try loading the module...
12 [ -e /proc/acpi/toshiba ] || /sbin/modprobe toshiba_acpi &>/dev/null
14 # Don't bother if /proc/acpi/toshiba still doesn't exist
15 [ -e /proc/acpi/toshiba ]|| exit
17 # Source function library.
18 . /etc/init.d/functions
23 gprintf "Starting up Toshiba function key daemon (fnfxd): "
24 daemon /usr/sbin/fnfxd
25 touch /var/lock/subsys/fnfxd
30 gprintf "Shutting down Toshiba function key daemon (fnfxd): "
33 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/fnfxd
49 [ -e /var/lock/subsys/fnfxd ] && restart || :
52 # See how we were called.
70 gprintf "Usage: $0 {start|stop|status|restart|reload|condrestart}\n"