Hi-
I recently posted that I needed to poll for partition table type on the list. I've written the basics of the script and figured someone else may need it. Here it is... copy, paste, modify... whatevs. Obviously, throw in your own comments into the code.
j
#!/bin/sh
PartitionType=diskutil list | grep 0:
case $PartitionType in
*Apple_partition_scheme)
echo "You have an Apple Partition Table" ## Add in whatever action you want like a "touch" command to place a dummy package
;;
*GUID_partition_scheme)
echo "You have a GUID Partition Table" ## Add in whatever action you want like a "touch" command to place a dummy package
;;
esac
exit 0
---
Jared F. Nichols
Desktop Engineer, Infrastructure & Operations
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436