diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-08-24 15:57:12 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-08-24 15:57:12 +0000 |
commit | e8ff1fd108ac4d6192d48446815b83cf41589af7 (patch) | |
tree | 1e7ddf9943867502f5ca1547e014aa939472885e | |
parent | 331ea4b4af4b8e147aacdd6c8fcf7352198f2151 (diff) |
Kill hciattach on unplug
-rwxr-xr-x | pcmcia/bluetooth | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pcmcia/bluetooth b/pcmcia/bluetooth index 220adc72..503484d9 100755 --- a/pcmcia/bluetooth +++ b/pcmcia/bluetooth @@ -5,7 +5,8 @@ # PCMCIA Bluetooth device initialization # Written by Maxim Krasnyanskiy <maxk@qualcomm.com> # -# This script requires cardmgr 3.2.1 or later +# This script requires new cardmgr and expects following +# environment variables FUNCTION, VENDORID, CARDNAME # # @@ -24,13 +25,13 @@ start_serial() { IRQ=`setserial /dev/$DEVICE | sed -e 's/.*IRQ: //'` setserial /dev/$DEVICE irq 0 ; setserial /dev/$DEVICE irq $IRQ - /sbin/hciattach $DEVICE $MANFID + /sbin/hciattach $DEVICE $MANFID > /tmp/pcmcia } stop_serial() { - return + do_fuser -k -HUP /dev/$DEVICE > /dev/null } suspend_serial() { - do_fuser -k -HUP /dev/$DEVICE > /dev/null + stop_serial } resume_serial() { start_serial |