vault backup: 2025-07-27 11:59:22
This commit is contained in:
9
2025/macOS autodetect USB.md
Normal file
9
2025/macOS autodetect USB.md
Normal file
@ -0,0 +1,9 @@
|
||||
```
|
||||
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
|
||||
```
|
||||
Reference in New Issue
Block a user