/[gentoo-x86]/net-wireless/bluez/files/bluez-4.67-udev.script
Gentoo

Contents of /net-wireless/bluez/files/bluez-4.67-udev.script

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Feb 12 19:32:06 2013 UTC (19 months, 1 week ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Drop old

(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 #!/bin/sh
2 #
3 # bluetooth.sh: udev external RUN script
4 #
5 # Copyright:
6 # 2005-2006 Henrik Brix Andersen <brix@gentoo.org>
7 # 2007 Petteri Räty <betelgeuse@gentoo.org>
8 # 2008 Tiziano Müller <dev-zero@gentoo.org>
9 # 2011 Pacho Ramos <pacho@gentoo.org>
10 # Distributed under the terms of the GNU General Public License v2
11
12 # Find out where sysfs is mounted. Exit if not available
13 sysfs=`grep -F sysfs /proc/mounts | awk '{print $2}'`
14 if [ "$sysfs" = "" ]; then
15 echo "sysfs is required"
16 exit 1
17 fi
18
19 if [ ! -d $sysfs/class/bluetooth/hci[0-9]* -a ! -d $sysfs/bus/bluetooth/devices/hci[0-9]* ]; then
20 udevadm trigger --subsystem-match=bluetooth --action=add
21 fi

  ViewVC Help
Powered by ViewVC 1.1.20