#!/bin/sh ######################################################################## # Begin bluez # # Description : Lancement du sous-système bluetooth # # Authors : tnut # Update : piernov - piernov@piernov.org # # Version : 0.2 # ######################################################################## ### BEGIN INIT INFO # Provides: bluez # Required-Start: udev # Should-Start: # Required-Stop: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 6 # Short-Description: Lancement du sous-système bluetooth # Description: Lance le démon bluez permettant la gestion des # périphériques Bluetooth. # X-LFS-Provided-By: NuTyX ### END INIT INFO . /lib/lsb/init-functions case "${1}" in start) log_info_msg "Starting bluetooth daemon..." start_daemon /usr/sbin/bluetoothd evaluate_retval ;; stop) log_info_msg "Stopping bluetooth daemon..." killproc /usr/sbin/bluetoothd evaluate_retval ;; restart) ${0} stop sleep 1 ${0} start ;; status) statusproc /usr/sbin/bluetoothd ;; *) echo "Usage: ${0} {start|stop|restart|status}" exit 1 ;; esac # End $rc_base/init.d/