You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
268 B
13 lines
268 B
#!/bin/sh
|
|
|
|
if [ $# != 0 ]; then
|
|
echo 'usage: termux-wake-lock'
|
|
echo 'Acquire the Termux wake lock to prevent the CPU from sleeping.'
|
|
exit 1
|
|
fi
|
|
|
|
am startservice \
|
|
--user 0 \
|
|
-a com.termux.service_wake_lock \
|
|
com.termux/com.termux.app.TermuxService \
|
|
> /dev/null
|
|
|