#!/bin/sh # Reset rs9113 # Must be done after /etc/init.d/mts-io executes, and # before any code that probes the USB bus. function do_reset { if ! [[ -w /sys/devices/platform/mts-io/wifi-bt-reset ]] ; then exit 0 fi mts-io-sysfs store wifi-bt-reset 0 usleep 60000 mts-io-sysfs store wifi-bt-reset 1 } case $1 in start) do_reset ;; stop) ;; reload) do_reset ;; *) echo "Usage: $0 {start|stop|reload}" exit 2 ;; esac