mirror of
https://github.com/danog/termux-api-package.git
synced 2024-11-30 04:39:01 +01:00
Added termux-wifi-enable
This commit is contained in:
parent
7f47901d5b
commit
7a18b8f18e
16
scripts/termux-wifi-enable
Normal file
16
scripts/termux-wifi-enable
Normal 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
|
Loading…
Reference in New Issue
Block a user