* Updates for CD device detection:
authorEinvalSledge@gmail.com <EinvalSledge@gmail.com@a0fa61bc-5347-0410-a1a9-7f54aa4e1825>
Thu, 19 Apr 2012 16:27:19 +0000 (16:27 +0000)
committerEinvalSledge@gmail.com <EinvalSledge@gmail.com@a0fa61bc-5347-0410-a1a9-7f54aa4e1825>
Thu, 19 Apr 2012 16:27:19 +0000 (16:27 +0000)
    + Look for /dev/sr0, in case /dev/cdrom doesn't exist.
      Closes issue 52.

git-svn-id: http://abcde.googlecode.com/svn/trunk@316 a0fa61bc-5347-0410-a1a9-7f54aa4e1825

abcde
changelog

diff --git a/abcde b/abcde
index acbe4bf..31f9c48 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -3294,6 +3294,8 @@ if [ "$CDROM" = "" ] ; then
                CDROM=/dev/cdroms/cdrom0
        elif [ -e /dev/cdrom ]; then
                CDROM=/dev/cdrom
+       elif [ -e /dev/sr0 ]; then
+               CDROM=/dev/sr0
        elif [ -e /dev/cd0c ]; then
                CDROM=/dev/cd0c
        elif [ -e /dev/acd0c ]; then
index 5cb7a29..a641baf 100644 (file)
--- a/changelog
+++ b/changelog
@@ -14,6 +14,9 @@ abcde 2.5.1 UNRELEASED
     Thanks to Andrew Strong for forwarding the patch.
   * Add ATOMICPARSLEY=AtomicParsley (Closes issue 37).
   * On OS X, switch from disktool to diskutil. (Closes issue 43).
+  * Updates for CD device detection:
+    + Look for /dev/sr0, in case /dev/cdrom doesn't exist.
+      Closes issue 52.
 
   [ Colin Tuckley ]
   * replace deprecated egrep with grep -E (Closes issue 24).