|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/task/22697/root/etc/rc1.d/ |
Upload File : |
#!/bin/sh
#
# hidd: Bluetooth Human Interface Device Daemon.
#
# chkconfig: 2345 26 89
# description: Bluetooth Human Interface Device Daemon. Provides keyboard, \
# mouse etc. functionality over Bluetooth.
#
# Source function library.
. /etc/rc.d/init.d/functions
[ -r /etc/sysconfig/hidd ] && . /etc/sysconfig/hidd
start()
{
[ -z "$HIDDARGS" ] && exit 0
echo -n $"Starting hidd: "
daemon /usr/bin/hidd $HIDDARGS
touch /var/lock/subsys/hidd
echo
}
stop()
{
echo -n $"Shutting down hidd: "
/usr/bin/hidd -K
killproc hidd
rm -f /var/lock/subsys/hidd
echo
}
[ -f /usr/bin/hidd ] || exit 0
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
condrestart)
[ -e /var/lock/subsys/hidd ] && (stop; start)
;;
status)
status hidd
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
exit 1
esac
exit 0