3 # bluetooth.sh: udev external RUN script
5 # Copyright 2005-2006 Henrik Brix Andersen <brix@gentoo.org>
6 # Distributed under the terms of the GNU General Public License v2
8 script=/etc/rc.d/init.d/bluetooth
10 # Find out where sysfs is mounted. Exit if not available
11 sysfs=`grep -F sysfs /proc/mounts | awk '{print $2}'`
12 if [ "$sysfs" = "" ]; then
13 echo "sysfs is required"
17 if [ ! -d $sysfs/class/bluetooth/hci[0-9]* ]; then
18 if $script status; then
22 if ! $script status; then