- Joined
- Jun 22, 2019
- Messages
- 3
- Motherboard
- Gigabyte Z390 M Gaming
- CPU
- i7-8700k
- Graphics
- RX 570
Are you using 10.14.5? Mine does not work.. still not ejected properly..
EDITED - Got my info a little wrong and now corrected.
OK, I registered just to try and help you here. I have been trying for a couple of days to get various things to work, trying the githuib on which didn't't work for me, and neither did the one in this thread to start with, but having a look at the rc.sleep and rc.wakeup scripts and running them in terminal trying different things, I finally got it to work!
I noticed that the format was 'disk[0-9]s.*' whereas the disks are actually labelled disk11s1, disk11s2 etc, the '.*' part wouldn't work. So I changed to 's*' removing the dot. And it worked!
So in summary I changed rc.sleep to:
#!/bin/sh
/usr/sbin/system_profiler SPUSBDataType | grep -e 'disk[0-9]s*' | sed 's/.*\(disk[0-9].*\)/\1/' | xargs -I{} /usr/sbin/diskutil unmount {}
And the first part of rc.wakeup to:
#!/bin/sh
disks=$(/usr/sbin/system_profiler SPUSBDataType | grep -e 'disk[0-9]s*' | sed 's/.*\(disk[0-9].*\)/\1/')
And it now all works! It's best if you uninstall first, then show the package contents of the app to get to rc.sleep and rc.wakeup. Then edit both with Text edit and save. Then install again.
This is working on 10.14.5 for me.
Hope that helps!
Cheers.
Last edited: