Only computing lastRevtime when we have made a new full rev. This leads to more consistency in RPMs, especially when accelerating or decellerating.
14 lines
223 B
Bash
Executable File
14 lines
223 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
|
|
while :
|
|
do
|
|
systemd-inhibit --what=idle:sleep --why="Do not interrupt cycling" $( dirname $0 )/bin/bridge "$@"
|
|
if [[ $? -ne 0 ]]
|
|
then
|
|
echo "ERROR: bridge exited with ERROR" 1>&2
|
|
fi
|
|
sleep 1
|
|
done
|