1
I have an encrypted USB dongue with cryptosetup, to mount it I have to execute a script that has hardcoded (or admits it as a parameter) the device name of that dongue that previously you had to search.
I wonder is there is any way via bash scripting or even doing a miniprogram to make an autodetection of the device name, leaving the workflow something like this:
- Connect USB dongue
- Execute script
- Script searches for the device name of the dongue and mounts the device
- Cryptosetup asks for the password
- Device is mounted