~ubuntu-branches/ubuntu/natty/linux-backports-modules-2.6.38/natty-updates

« back to all changes in this revision

Viewing changes to updates/compat-wireless-2.6.36/scripts/btunload.sh

  • Committer: Bazaar Package Importer
  • Author(s): Tim Gardner, Tim Gardner
  • Date: 2011-06-08 10:44:09 UTC
  • Revision ID: james.westby@ubuntu.com-20110608104409-fnl8carkdo15bwsz
Tags: 2.6.38-10.6
[ Tim Gardner ]

Shorten compat-wireless package name to cw to accomodate
CDROM file name length restrictions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
MODULES="hidp rfcomm bnep l2cap sco btusb bluetooth"
3
 
echo Stoping bluetooth service..
4
 
/etc/init.d/bluetooth stop
5
 
/etc/init.d/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