1 #!/bin/bash
2 MODULES="$MODULES ath3k bcm203x bluecard_cs bnep bpa10x bt3c_cs btmrvl btmrvl_sdio btsdio"
3 MODULES="$MODULES btusb btuart_cs cmtp dtl1_cs hidp hci_vhci hci_uart rfcomm sco bluetooth l2cap"
4 echo Stoping bluetooth service..
5 /etc/init.d/bluetooth stop
6 /etc/init.d/bluetooth status
8 for i in $MODULES; do
9 grep ^$i /proc/modules 2>&1 > /dev/null
10 if [ $? -eq 0 ]; then
11 echo Unloading $i...
12 modprobe -r --ignore-remove $i
13 fi
14 done