Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id AC726782BAA for <~alpine/users@lists.alpinelinux.org>; Mon, 13 Jan 2020 09:26:44 +0000 (UTC) Received: from webmail.gandi.net (webmail20.sd4.0x35.net [10.200.201.20]) (Authenticated sender: michel.piquemal@ipik.org) by relay11.mail.gandi.net (Postfix) with ESMTPA id D1C61100016 for <~alpine/users@lists.alpinelinux.org>; Mon, 13 Jan 2020 09:26:43 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 13 Jan 2020 10:26:43 +0100 From: macmpi To: ~alpine/users@lists.alpinelinux.org Subject: Detect AudioCD insertion & list tracks Message-ID: X-Sender: spam@ipik.org User-Agent: Roundcube Webmail/1.3.8 Hi, I'm trying to skim down a Debian application onto Alpine, and struggle to transform some basic features. I need to execute a script when an AudioCD is inserted to basically list available audio tracks. On Debian this was simply achieved with a udev rule similar to this exemple: http://moodeaudio.org/forum/showthread.php?tid=1670 I'm wondering how I could do without udev on Alpine. mdev does not seem to fully accomplish that, as sr0 event seems to only kick-in at boot, not everytime a CD is inserted. > sr0 root:cdrom 0660 @ln -sf $MDEV cdrom;/home/my_user/my_script.sh Appreciate any help & suggestions. BR