Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:Test
fnfx
fnfxd.rc.suse
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fnfxd.rc.suse of Package fnfx
#! /bin/sh # Copyright (c) 1995-2003 SuSE Linux AG, Nuernberg, Germany. # All rights reserved. # # Author: Stefan Behlert <feedback@suse.de> # # /etc/init.d/fnfxd # and its symbolic link # /(usr/)sbin/rcfnfxd # ### BEGIN INIT INFO # Provides: fnfxd # Required-Start: $syslog acpid # Should-Start: # Required-Stop: $syslog # Should-Stop: # Default-Start: 2 3 5 # Default-Stop: 0 6 # Short-Description: FnFxD provides FN-Key-functionality on Toshiba Laptops # Description: FnFX enables owners of Toshiba laptops to change the LCD # brightness, control, the internal fan and use the special # keys on their keyboard (Fn-x combinations, hot-keys). The # internal functions will give the possibility to map the # Fn-Keys to functions like volume up/down, mute, suspend to # disk, suspend to ram and switch LCD/CRT/TV-out. ### END INIT INFO # # Check for missing binary FNFXD_BIN=/usr/sbin/fnfxd test -x $FNFXD_BIN || exit 5 # check for missing configuration files test -f /etc/fnfx/fnfxd.conf | exit 6 test -f /etc/fnfx/keymap | exit 6 # Source LSB init functions # providing start_daemon, killproc, pidofproc, # log_success_msg, log_failure_msg and log_warning_msg. # This is currently not used by UnitedLinux based distributions and # not needed for init scripts for UnitedLinux only. If it is used, # the functions from rc.status should not be sourced or used. #. /lib/lsb/init-functions . /etc/rc.status # Reset status of this service rc_reset case "$1" in start) echo -n "Starting fnfxd " if [ ! -d /proc/acpi/toshiba ] || [ ! -f /proc/acpi/toshiba/keys ]; then echo -n "...missing /proc/acpi/toshiba" rc_failed 5 rc_status -v exit fi; startproc $FNFXD_BIN rc_status -v ;; stop) echo -n "Shutting down fnfxd " killproc -TERM $FNFXD_BIN rc_status -v ;; try-restart) $0 status >/dev/null && $0 restart rc_status ;; restart) $0 stop $0 start rc_status ;; force-reload) echo -n "Reload service FnFxD " $0 stop && $0 start rc_status ;; reload) rc_failed 3 rc_status -v ;; status) echo -n "Checking for service FnFxD " checkproc $FNFXD_BIN rc_status -v ;; probe) ## Optional: Probe for the necessity of a reload, print out the ## argument to this init script which is required for a reload. ## Note: probe is not (yet) part of LSB (as of 1.2) # test /etc/FOO/FOO.conf -nt /var/run/FOO.pid && echo reload ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" exit 1 ;; esac rc_exit
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor