on run {input, parameters}
do shell script "sudo -S sh -c 'zpool list | cut -d\" \" -f1 | grep -v NAME | xargs zpool export -f'" with administrator privileges
do shell script "sudo diskutil list | grep ZFS | awk -F ' ' '{print $3}' | while read a; do sudo diskutil info $a | grep 'Device Node' | awk -F ' ' '{print $3}' | xargs diskutil eject; done" with administrator privileges
return input
end run
Try it and enjoy!
I am using Snow Leopard 10.6.8. I tried in Mountain Lion 10.8.5, but it was not executing the last step properly because I forgot to iterate several disks. I didn't test after I fixed.
Cheers!
Gian
--
---
You received this message because you are subscribed to the Google Groups "zfs-macos" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zfs-macos+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.