wl1251: prevent scan when connected
[pandora-wifi.git] / scripts / btunload.sh
1 #!/bin/bash
2 MODULES="hidp rfcomm bnep l2cap sco btusb bluetooth"
3 echo Stoping bluetooth service..
4 sudo service bluetooth stop
5 sudo service bluetooth status
6
7 for i in $MODULES; do
8         grep ^$i /proc/modules 2>&1 > /dev/null
9         if [ $? -eq 0 ]; then
10                 echo Unloading $i...
11                 modprobe -r --ignore-remove $i
12         fi
13 done