On 2016-10-20 09:14, jdd wrote:
I noticed imagewriter knows if a plugged device is usb pen or not
is there a way to do the same in a script? May be detect if the pen is an iso image before acting?
Telcontar:~ # lsblk lsblk --output NAME,LABEL,MODEL,SERIAL,ROTA,TYPE,TRAN,REV,VENDOR /dev/sde lsblk: lsblk: not a block device NAME LABEL MODEL SERIAL ROTA TYPE TRAN REV VENDOR sde STORE N GO 1 disk usb 1.0 Verbatim └─sde1 STORE N GO 1 part Telcontar:~ # :-) I don't know if that is what imagewriter writer uses, but it is a start. You can also detect if the device is mounted, and baulk if it is. Or mount and check contents. List on the screen and ask the user to accept. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)