[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
This commit is contained in:
20
libs/libinklevel/patches/003-fix_usb_device_location.patch
Normal file
20
libs/libinklevel/patches/003-fix_usb_device_location.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- 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) {
|
Reference in New Issue
Block a user