#!/bin/sh tool=/usr/bin/rpicam-hello # bookworm [ -e "$tool" ] || tool=/usr/bin/libcamera-hello # bullseye $tool --list-cameras | grep -oE '/base/(soc|axi)/[^)]*' || exit -1