php: Update from 7.1.1 to 7.1.2 and enable pcntl
[termux-packages] / packages / termux-api / termux-wifi-connectioninfo
CommitLineData
1f33750f
FF
1#!/data/data/com.termux/files/usr/bin/sh
2set -e -u
3
4SCRIPTNAME=termux-wifi-connectioninfo
5show_usage () {
6 echo "Usage: $SCRIPTNAME"
7 echo "Get information about the current wifi connection."
8 exit 0
9}
10
11while getopts :h option
12do
13 case "$option" in
14 h) show_usage;;
15 ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1;
16 esac
17done
18shift $(($OPTIND-1))
19
20if [ $# != 0 ]; then echo "$SCRIPTNAME: too many arguments"; exit 1; fi
21
22/data/data/com.termux/files/usr/libexec/termux-api WifiConnectionInfo