/usr/bin/olpc-nosleep is in olpc-powerd 23-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/bin/sh
usage()
{
exec 1>&2
echo "usage: ${0##*/} program [args ...]"
echo " to prevent the laptop from sleeping while 'program' is running"
exit 1
}
case $1 in
-*|"") usage ;;
esac
# powerd will clean this up after we're gone. and if the touch
# doesn't work, it's probably because powerd's not running and the
# directory isn't there /var/run.
touch /var/run/powerd-inhibit-suspend/$$ 2>/dev/null
exec "$@"
|