On Sat, Sep 17, 2016 at 07:34:42PM +0300, George Pediaditis wrote:
> Hello.
> 
> I am trying to mount CD automatically when i insert it.
> Hotplugd doesn't run /etc/hotplug/attach when i insert the CD.
> It works fine with USB stick any ideas?
> 

hotplugd(8) watchs for devices attachment or detachment, but a CD
insertion is a new medium in a existing device, so no event is
generated.

For this specific problem, sysutils/toad (marked broken) was using a
polling daemon: a program that regulary try to readlabelfs(3) from cdXc,
and run itself the attach script.

See https://github.com/ajacoutot/toad/blob/master/toadd.c for source
code of the polling daemon.
-- 
Sebastien Marie

Reply via email to