[PLUG] detecting music CD
Sean Whitney
sean.whitney at gmail.com
Sat Feb 28 21:58:38 UTC 2009
I have small shell script that used to detect that a cd had been
inserted by looking at
/proc/ide/hdc/capacity
Well it's been so long since I used it, that the 2.6 kernel has made
this look like historic cruft.
Anyone have any way's to detect that cd has been inserted?
I've poked around the /proc and /sys directories and I haven't found
anything interesting yet.
This is running ubuntu-server intrepid.
Thanks,
Sean
More information about the PLUG
mailing list