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

9 lines
192 B
Markdown

```
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
```