Changeset 2933 in MondoRescue for branches/3.0/mondo/src/common/libmondo-devices.c
- Timestamp:
- Jan 24, 2012, 7:09:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/common/libmondo-devices.c
r2931 r2933 559 559 if (find_home_of_exe(cdr_exe)) { 560 560 sprintf(command, 561 "%s -scanbus 2> /dev/null | tr -s '\t' ' ' | grep \"[0-9]*,[0-9]*,[0-9]*\" | grep -v \"[0-9]*) \\*\" | grep CD| cut -d' ' -f2 | head -n1",561 "%s -scanbus 2> /dev/null | tr -s '\t' ' ' | grep \"[0-9]*,[0-9]*,[0-9]*\" | grep -v \"[0-9]*) \\*\" | grep '[D|C][V|D]' | cut -d' ' -f2 | head -n1", 562 562 cdr_exe); 563 563 mr_asprintf(&tmp, "%s", call_program_and_get_last_line_of_output(command)); … … 916 916 917 917 sprintf(tmp, "%s", call_program_and_get_last_line_of_output 918 ("dvdrecord -scanbus 2> /dev/null | grep \") '\" | grep -n \"\" | grep DVD| cut -d':' -f1")918 ("dvdrecord -scanbus 2> /dev/null | grep \") '\" | grep -n \"\" | grep -E '[D|C][V|D]' | cut -d':' -f1") 919 919 ); 920 920 log_msg(5, "tmp = '%s'", tmp); 921 921 if (!tmp[0]) 922 922 sprintf(tmp, "%s", call_program_and_get_last_line_of_output 923 ("cdrecord -scanbus 2> /dev/null | grep \") '\" | grep -n \"\" | grep DVD| cut -d':' -f1")923 ("cdrecord -scanbus 2> /dev/null | grep \") '\" | grep -n \"\" | grep -E '[D|C][V|D]' | cut -d':' -f1") 924 924 ); 925 925 if (tmp[0]) {
Note:
See TracChangeset
for help on using the changeset viewer.