Added termux-wifi-enable

This commit is contained in:
bsg 2018-06-06 03:48:33 +03:00
parent 7f47901d5b
commit 7a18b8f18e

View File

@ -0,0 +1,16 @@
#!/data/data/com.termux/files/usr/bin/sh
set -e -u
SCRIPTNAME=termux-wifi-enable
show_usage () {
echo "Usage: $SCRIPTNAME [true | false]"
echo "Toggle Wi-Fi On/Off"
exit 1
}
if [ "$#" -ne 1 ]; then
show_usage
fi
/data/data/com.termux/files/usr/libexec/termux-api WifiEnable --ez enabled $1