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