]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/cdrkit/cdrkit-1.1.11-devname.patch
Remove dvdrtools for cdrkit
[ipfire-2.x.git] / src / patches / cdrkit / cdrkit-1.1.11-devname.patch
CommitLineData
8a960584
MT
1diff -up wrk/libusal/scsi-linux-sg.c.wrk wrk/libusal/scsi-linux-sg.c
2--- wrk/libusal/scsi-linux-sg.c.wrk 2015-05-29 13:30:41.088896572 +0200
3+++ wrk/libusal/scsi-linux-sg.c 2015-05-29 13:38:25.776303388 +0200
4@@ -509,7 +509,9 @@ usalo_open(SCSI *usalp, char *device)
5 /* scan and maybe keep one open, sg_setup decides */
6 #define HDX 0
7 #define SCD 1
8-#define SG 2
9+/* second scd option included because of Fedora naming convention /dev/srN */
10+#define SCD2 2
11+#define SG 3
12 int h;
13 /*
14 retry_scan_open:
15@@ -533,6 +535,15 @@ retry_scan_open:
16 first=0;
17 last=255;
18 break;
19+ }
20+ case(SCD2):
21+ {
22+ if(!check_linux_26())
23+ continue;
24+ pattern="/dev/sr%d";
25+ first=0;
26+ last=255;
27+ break;
28 }
29 case(SG):
30 {