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

14 lines
313 B
Bash
Executable File

#!/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 me.sergiotarxz.openmg.x11.service_wake_lock \
me.sergiotarxz.openmg.x11/me.sergiotarxz.openmg.x11.app.TermuxService \
> /dev/null