/[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.1 - (hide annotations) (download)
Sat Dec 31 21:09:18 2011 UTC (2 years, 11 months ago) by pacho
Branch: MAIN
Version bump, remove old.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 pacho 1.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