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