#!/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_rop_write.py 2>&1 | grep -E "ROPWRITE|marker|bytes written|\*\*\*|Traceback" | head -5 echo ROPWRITE-DONE