* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / drivers / usb / restart
blob98ca05367e19b1325ae25d2774e5a571ef1758a4
1 #!/bin/sh
3 ME=`basename $0`
5 #UMOD=`lsmod | grep '^bp-mouse' | grep -v grep`
6 #if test "$UMOD"; then
7 # echo "$ME: removing bp-mouse.o"
8 # if ! rmmod bp-mouse; then
9 # echo "$ME: cannot remove bp-mouse.o"
10 # exit 1
11 # fi
12 #fi
14 UPID=`ps aux | grep ohci-control | grep -v grep | awk '{print $2}'`
15 if test "$UPID"; then
16 echo "$ME: killing $UPID"
17 kill $UPID
20 UMOD=`lsmod | grep '^usb-ohci' | grep -v grep`
21 if test "$UMOD"; then
22 echo "$ME: removing usb-ohci.o"
23 sleep 1
24 if ! rmmod usb-ohci; then
25 echo "$ME: cannot remove usb-ohci.o"
26 exit 1
30 dmesg -c > /dev/null
32 echo "$ME: starting usb-ohci.o"
33 insmod -m usb-ohci.o > usb-ohci.map
35 sleep 1
36 UPID=`ps aux | grep ohci-control | grep -v grep | awk '{print $2}'`
37 if test "$UPID"; then echo "$ME: ohci-control is pid $UPID" ; fi