packages/libs/libinklevel/patches/003-fix_usb_device_location.patch
jow 3756e305bc [packages] Update libinklevel to 0.8.0rc2, fix usb device location
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15692 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-07 15:10:01 +00:00

21 lines
710 B
Diff

--- a/linux.c
+++ b/linux.c
@@ -82,7 +82,7 @@ int get_device_id(const int port, const
if (port == USB || port == CUSTOM_USB) {
if (port == USB) {
- sprintf(device_file1, "/dev/usb/lp%d", portnumber);
+ sprintf(device_file1, "/dev/lp%d", portnumber);
sprintf(device_file2, "/dev/usblp%d", portnumber);
fd = open(device_file1, O_RDONLY);
if (fd == -1) {
@@ -142,7 +142,7 @@ int open_printer_device(const int port,
int fd;
if (port == USB) {
- sprintf(device_file1, "/dev/usb/lp%d", portnumber);
+ sprintf(device_file1, "/dev/lp%d", portnumber);
sprintf(device_file2, "/dev/usblp%d", portnumber);
#ifdef WITH_PARPORT
} else if (port == PARPORT) {