I checked hotplug-diskmount. It works fine from command line. It mounts the cdrom. The problem is that i don't know where to insert that line of code. hotplugd doesn't called attach file.
On Sun, Sep 18, 2016 at 7:59 AM, Sebastien Marie <sema...@online.fr> wrote: > 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