Skip to contentSkip to conversation

bluez-dtl1-workaround: deleted

PATCH Applied Phil Blundell 2 participants 2 messages Jul 7, 2011 – Jul 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 bluez-dtl1-workaround: deleted

---
 .../bluez/bluez-dtl1-workaround/02dtl1_cs.sh       |   57 ----
 .../bluez/bluez-dtl1-workaround/COPYING.patch      |  346 --------------------
 .../bluez/bluez-dtl1-workaround_1.0.bb             |   18 -
 3 files changed, 0 insertions(+), 421 deletions(-)
 delete mode 100644 meta/recipes-connectivity/bluez/bluez-dtl1-workaround/02dtl1_cs.sh
 delete mode 100644 meta/recipes-connectivity/bluez/bluez-dtl1-workaround/COPYING.patch
 delete mode 100644 meta/recipes-connectivity/bluez/bluez-dtl1-workaround_1.0.bb
meta/recipes-connectivity/bluez/bluez-dtl1-workaround/02dtl1_cs.sh deleted +0 -57
deleted file mode 100644
index fefc72e..0000000
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-case "$1" in
-	suspend)
-		if [ "`/sbin/hciconfig`" != "" ]; then
-			#If hciconfig outputs anything then there's probably a Bluetooth
-			# CF card in the slot so shut it down.
-			hcitool dc `hcitool con | grep ACL | sed 's/^.*\([0-9A-F]\{2\}\(:[0-9A-F]\{2\}\)\{5\}\).*$/\1/'`
-			hciconfig hci0 down
-			killall hciattach > /dev/null 2>&1 
-		fi 
-		;;
-
-	resume)
-		#check for kernel version
-		if [ "`uname -r | grep 2.4.`" != "" ]; then
-			k="o"
-		elif [ "`uname -r | grep 2.6.`" != "" ]; then
-			k="ko"
-		else
-			exit 0
-		fi
-
-		if test -e /sbin/cardctl; then
-			CARDCTL=/sbin/cardctl
-		elif test -e /sbin/pccardctl; then
-			CARDCTL=/sbin/pccardctl
-		else
-			exit 0
-		fi
-
-		if [ "`lsmod | grep hci_uart`" != "" ]; then
-			#If the hci_usb module is still loaded then there's a serial based
-			# Bluetooth CF card in the slot, which only needs a resume to get it going
-			# again. 
-			rfcomm bind all
-			$CARDCTL resume
-			hciconfig hci0 up
-		else
-			# only works for nokia dtl1 cards
-			for f in /lib/modules/`uname -r`/kernel/drivers/bluetooth/dtl1_cs.$k
-			do
-				#Enumerate all the self-contained Bluetooth CF card drivers
-				f=`echo $f | sed 's/\.'$k'$//'`
-				f=`basename $f`
-				if [ "`lsmod | grep $f`" != "" ]; then
-					#If one of these drivers is still loaded, then there is probably
-					#a non-serial based Bluetooth CF card in the slot that needs
-					#ejecting and reinserting to get it going again
-					rfcomm bind all
-					$CARDCTL eject
-					$CARDCTL insert
-					hciconfig hci0 up
-				fi
-			done
-		fi
-esac
meta/recipes-connectivity/bluez/bluez-dtl1-workaround/COPYING.patch deleted +0 -346

346 lines not on this page · raw message

meta/recipes-connectivity/bluez/bluez-dtl1-workaround_1.0.bb deleted +0 -18
deleted file mode 100644
index 103cfd9..0000000
@@ -1,18 +0,0 @@
-DESCRIPTION = "A nasty hack for for dtl1-cs driver to workaround suspend/resume."
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
-SECTION = "console"
-PR = "r3"
- 
-SRC_URI = "file://02dtl1_cs.sh \
-           file://COPYING.patch"
-
-inherit allarch
-
-do_install() { 
-        install -d ${D}${sysconfdir}/apm/event.d/ 
-        install -m 0755 ${WORKDIR}/02dtl1_cs.sh ${D}${sysconfdir}/apm/event.d/ 
-} 
-
-#Package 02dtl1_cs.sh, which is a nasty hack to get dtl1c_cs cards working with suspend/resume
-FILES_${PN} += "${sysconfdir}/apm/"
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 9 lines · Phil Blundell
---
 .../bluez/bluez-dtl1-workaround/02dtl1_cs.sh       |   57 ----
 .../bluez/bluez-dtl1-workaround/COPYING.patch      |  346 --------------------
 .../bluez/bluez-dtl1-workaround_1.0.bb             |   18 -
 3 files changed, 0 insertions(+), 421 deletions(-)
 delete mode 100644 meta/recipes-connectivity/bluez/bluez-dtl1-workaround/02dtl1_cs.sh
 delete mode 100644 meta/recipes-connectivity/bluez/bluez-dtl1-workaround/COPYING.patch
 delete mode 100644 meta/recipes-connectivity/bluez/bluez-dtl1-workaround_1.0.bb

Merged to master, thanks.

Richard