op_bluetooth_work.sh: Modify LED enable / disable - code to work properly with the...
[openpandora.oe.git] / recipes / pandora-system / pandora-usbhost / rc.usbhost
1 #!/bin/sh
2 DESC="USB HOST"
3 NAME="EHCI Driver"
4
5 d_stop() {
6         if `grep -q ehci_hcd /proc/modules` ; then
7                 rmmod ehci_hcd 2> /dev/null
8         fi
9 }
10
11 d_start() {
12         modprobe ehci-hcd
13         }
14
15 case "$1" in
16   start)
17         echo -n "Starting $DESC: $NAME"
18         d_start &
19         echo "."
20         ;;
21   stop)
22         echo -n "Stopping $DESC: $NAME"
23         d_stop
24         echo "."
25         ;;
26   restart|force-reload)
27         echo -n "Restarting $DESC: $NAME"
28         d_stop
29         sleep 1
30         d_start
31         echo "."
32         ;;
33   *)
34         echo "Usage: $0 {start|stop|restart|force-reload}" >&2
35         exit 1
36         ;;
37 esac
38
39 exit 0