#!/bin/sh # This script works around a USB full-speed 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. # This script is *only* needed for devices with an H5 operating at USB full speed (MTCDP, MT100EOCG). # Devices with high speed USB are not affected (MTOCGD2, MTOCGD). rmmod ohci_hcd mts-io-sysfs store radio-reset 0 sleep 8 modprobe ohci_hcd