3 # chkconfig: 2345 88 12
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 msg_starting "Toshiba function key daemon (fnfxd): "
24 daemon /usr/sbin/fnfxd
25 touch /var/lock/subsys/fnfxd
29 msg_stopping "Toshiba function key daemon (fnfxd): "
32 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/fnfxd
47 [ -e /var/lock/subsys/fnfxd ] && restart || :
50 # See how we were called.
68 msg_usage "$0 {start|stop|status|restart|reload|condrestart}"