#!/bin/bash for OP in 0x1021 0x3103 0x3005 0x2005 0x1105 0x4001; do cd /root/psp && source ./env.sh >/dev/null 2>&1 rm -f /tmp/am_usb*.lock $PSP_PY work/atx_power.py cycle 16 >/dev/null 2>&1 cd /root/psp/hw OPCODE=$OP timeout 150 $PSP_PY /root/psp/hw/gcp_rop_sweep.py 2>&1 | grep -E "RESULT OPCODE|Traceback" | head -2 done echo SWEEP-DONE