blob: 98ca05367e19b1325ae25d2774e5a571ef1758a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
ME=`basename $0`
#UMOD=`lsmod | grep '^bp-mouse' | grep -v grep`
#if test "$UMOD"; then
# echo "$ME: removing bp-mouse.o"
# if ! rmmod bp-mouse; then
# echo "$ME: cannot remove bp-mouse.o"
# exit 1
# fi
#fi
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-ohci' | grep -v grep`
if test "$UMOD"; then
echo "$ME: removing usb-ohci.o"
sleep 1
if ! rmmod usb-ohci; then
echo "$ME: cannot remove usb-ohci.o"
exit 1
fi
fi
dmesg -c > /dev/null
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
|