DF-2613 / check_env.sh
#!/bin/sh # DF-2612/DF-2613 availability check: is there ANY live SES device to test # against on this machine? Exits 1 with the blocker if not. echo "=== camcontrol devlist ===" camcontrol devlist echo "=== /dev/ses* ===" ls -l /dev/ses* 2>&1 echo "=== ses(4) attachment probe ===" sysctl -n kern.conftxt 2>/dev/null | grep -i "ses\b" | head -3 if [ ! -e /dev/ses0 ]; then echo "BLOCKER: no ses(4) device node on this system (no SCSI" echo "Enclosure Services device presented by the hypervisor/bus)." echo "DF-2612/DF-2613 require a real or emulated SES/SAF-TE target" echo "returning crafted RECEIVE_DIAGNOSTIC pages; verdicts are" echo "code-trace-only (missing_setup)." exit 1 fi echo "ses device present: live testing possible" exit 0 |