private-schrijfsels-en-noti.../2025/macOS autodetect USB.md

192 B

mountpoint=`system_profiler SPUSBDataType | grep "Mount Point" | sed 's/[ \t]*Mount Point:.//' | grep USB-JER-64G`
if [ -n "$mountpoint" ]; then
	echo "present"
	exit 0
else
	exit 1
fi