#!/bin/bash echo "START $(date +%T)" cd /root/psp && source ./env.sh >/dev/null 2>&1 rm -f /tmp/am_usb*.lock $PSP_PY work/atx_power.py cycle 18 >/dev/null 2>&1 cd /root/psp/hw timeout 150 $PSP_PY /root/psp/hw/gcp_twohop.py 2>&1 | grep -E "TWOHOP|\*\*\*|only hop|other:|Traceback" | head -4 echo TWOHOP-DONE