summaryrefslogtreecommitdiff
path: root/multitech/recipes/multitech/mts-io/radio-reset-h5
blob: 7a059eb706f41e638fbd2e90c9af07cf4fb2e95f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# This script works around an H5 radio quirk by disabling USB and 
# waiting for the radio to power up before re-enabling it.  Note that
# this will disable all USB devices connected to the USB host controller
# until the reset is finished.  USB device port is not affected.

rmmod ohci_hcd
mts-io-sysfs store radio-reset 0
sleep 8
modprobe ohci_hcd