termux-packages/packages/termux-tools/termux-wake-lock

14 lines
268 B
Plaintext
Raw Normal View History

#!/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