Assuming I’m doing something like this in a shell script (busybox or bash):
while sleep 15; do
do_something()
done
Will the device be able to suspend/sleep while the sleep
part is executing?
Will it make a difference whether I use /bin/sleep
or shell builtins?
I want so_something
to actually not get executed when the device wants to suspend/sleep.
Assuming that’s not possible with shell, are there alternatives/tricks apart from writing something like a custom (libev/event based?) C program?