Do stuff when drive is unmounted (disconnected)

Hi,
Would anyone happen to know of a way to do stuff when a specific drive is unmounted (disconnected)?
I'm able to react to it being mounted (connected), by monitoring the `/Volumes/` folder with rules `Name is [Drive Name]` and `Date Added is after Date Last Matched`, but I want to execute some actions when that same drive is mounted again as well.
Any ideas?
Thanks!
—Douwe
Would anyone happen to know of a way to do stuff when a specific drive is unmounted (disconnected)?
I'm able to react to it being mounted (connected), by monitoring the `/Volumes/` folder with rules `Name is [Drive Name]` and `Date Added is after Date Last Matched`, but I want to execute some actions when that same drive is mounted again as well.
Any ideas?
Thanks!
—Douwe