summaryrefslogtreecommitdiff
path: root/recipes-kernel/rsi-91x/files/rs9113.reset
blob: 7992f7d2f90498b6b80df5af063a29e14127e52f (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
#!/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
    /etc/init.d/rs9113 reset
}

case $1 in
  start)
    do_reset
    ;;
  stop)
    ;;
  reload)
    do_reset
    ;;
  *)
    echo "Usage: $0 {start|stop|reload}"
    exit 2
    ;;
esac