summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io/radio-reset.init
blob: 3ce07c7794f31b4fbc5b9e1791ef579601817ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

ENABLED="yes"

[ -r /etc/default/radio-reset ] && source /etc/default/radio-reset
[ "$ENABLED" == "yes" ] || exit 0

case $1 in
  stop)
    echo "Resetting cellular radio"
    mts-io-sysfs store radio-reset 0
    ;;

  *)
    echo "Usage: $0 {stop}"
    exit 2
    ;;
esac