macOS tools moving to my git

This commit is contained in:
2026-05-10 12:53:30 -07:00
parent 61c0d4b5f1
commit 83156ea9e8
101 changed files with 3011 additions and 0 deletions

11
unmountvol Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
export PATH=$PATH:/usr/bin/local
echo "Looking for $1"
_MYDISK=`diskutil list | grep -w "$1" | awk '{print $6}'`
if [ $_MYDISK = 'TB' ]; then
_MYDISK=`diskutil list | grep -w "$1" | awk '{print $7}'`
elif [ $_MYDISK = 'GB' ]; then
_MYDISK=`diskutil list | grep -w "$1" | awk '{print $7}'`
fi
echo "Unmounting $_MYDISK"
diskutil unmount force /dev/$_MYDISK