Hello SFR,
Really great! This works, as well as plugging or unplugging a removable device and explanations helped me to understand how: thank you!
Last thing : As said above, pmount window is not always refreshed properly and this has sometimes to be done manually. Is there any sleep delay to put/increase somewhere for this script to work... perfectly?
Cordialement.
Autorun pmount when new usb drive is plugged? [SOLVED]
Perhaps the device was reinserted too quickly..? Hard to say, because I haven't encountered this problem.
You can try decrease sleep 2 to, eg. sleep 1, but don't know if this helps...
To watch up to date what devices (and how quick) are being recognized by system, launch this in terminal:
Greetings!
You can try decrease sleep 2 to, eg. sleep 1, but don't know if this helps...
To watch up to date what devices (and how quick) are being recognized by system, launch this in terminal:
Code: Select all
watch -n1 ls -1 --hide=ram* --hide=loop* /sys/block
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]