Date: Tue, 14 Jan 2003 01:48:19 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Fox <foxbsd@gristle.to> Cc: freebsd-newbies@FreeBSD.org Subject: Re: detecting open cd drive Message-ID: <20030113234819.GA3695@gothmog.gr> In-Reply-To: <5.0.2.1.0.20030113091738.02802130@pop-server.austin.rr.com> References: <20030110031616.359a7dcc.one-@madridwireless.net> <5.0.2.1.0.20030113091738.02802130@pop-server.austin.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-01-13 09:20, foxbsd@gristle.to (Fox) wrote: > Is there a way to detect that the cdrom drive has been closed from > userland. I want to launch a script triggered by the cdrom drive > tray closing. > > I am using FreeBSD 4.7 You could probably poll using ioctl(fd, CDIOREADTOCHEADER, ...) but this is something I haven't tested :-/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030113234819.GA3695>