patch-2.2.8 linux/drivers/usb/restart

Next file: linux/drivers/usb/stopusb
Previous file: linux/drivers/usb/ohci.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.7/linux/drivers/usb/restart linux/drivers/usb/restart
@@ -11,25 +11,28 @@
 #  fi
 #fi
 
-UPID=`ps aux | grep uhci-control | grep -v grep | awk '{print $2}'`
+UPID=`ps aux | grep ohci-control | grep -v grep | awk '{print $2}'`
 if test "$UPID"; then
   echo "$ME: killing $UPID"
   kill $UPID
 fi
 
-UMOD=`lsmod | grep '^usb-uhci' | grep -v grep`
+UMOD=`lsmod | grep '^usb-ohci' | grep -v grep`
 if test "$UMOD"; then
-  echo "$ME: removing usb-uhci.o"
+  echo "$ME: removing usb-ohci.o"
   sleep 1
-  if ! rmmod usb-uhci; then
-    echo "$ME: cannot remove usb-uhci.o"
+  if ! rmmod usb-ohci; then
+    echo "$ME: cannot remove usb-ohci.o"
     exit 1
   fi
 fi
 
 dmesg -c > /dev/null
 
-echo "$ME: starting usb-uhci.o"
-insmod -m usb-uhci.o > usb-uhci.map
-#echo "$ME: starting bp-mouse.o"
-#insmod -m bp-mouse.o > bp-mouse.map
+echo "$ME: starting usb-ohci.o"
+insmod -m usb-ohci.o > usb-ohci.map
+
+sleep 1
+UPID=`ps aux | grep ohci-control | grep -v grep | awk '{print $2}'`
+if test "$UPID"; then echo "$ME: ohci-control is pid $UPID" ; fi
+

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)