termux-api: Add infrared and telephony api:s
[termux-packages] / packages / termux-api / termux-telephony-cellinfo
1 #!/bin/sh
2 set -e -u
3
4 SCRIPTNAME=termux-telephony-cellinfo
5 show_usage () {
6 echo "Usage: $SCRIPTNAME"
7 echo "Get information about all observed cell information from all radios on the device including the primary and neighboring cells."
8 echo ""
9 exit 0
10 }
11
12 while getopts :h option
13 do
14 case "$option" in
15 h) show_usage;;
16 ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1;
17 esac
18 done
19 shift $(($OPTIND-1))
20
21 if [ $# != 0 ]; then echo "$SCRIPTNAME: too many arguments"; exit 1; fi
22
23 @TERMUX_API@ TelephonyCellInfo