I think so, but I could have missed something.

this is the content of my script:
#!/bin/bash
#udisksctl unmount -b /dev/sdb1 && udisksctl power-off -b /dev/sdb --no-user-interaction
udisks --unmount /dev/sdb1 && udisks --detach /dev/sdb

The first two (commented) lines are what I describe above (basically, --no-user-interaction doesn't work for power-off).
The last one with udisks can't work without sudo for now.
I'm digging in the manuals.

Reply via email to