1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Use ulptX, not unlptX for USB printers. It appears the two are no longer

the same (someone's been coding), and unlptX does not force the job out
on all printers.

Emergency patch; maintainer notified. He's always had me do whatever I
thought was right before, so this should be no different. I will handle
any complaints if this patch causes anyone a problem.
This commit is contained in:
Alan Eldridge 2002-08-08 16:15:15 +00:00
parent ebbda0d0c3
commit 1c396b2a99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64234

View File

@ -0,0 +1,22 @@
--- backend/usb.c.orig Thu May 16 09:44:50 2002
+++ backend/usb.c Thu Aug 8 11:37:20 2002
@@ -433,18 +433,7 @@
#elif defined(__sun)
#elif defined(__hpux)
#elif defined(__osf)
-#elif defined(__FreeBSD__)
- int i; /* Looping var */
- char device[255]; /* Device filename */
-
-
- for (i = 0; i < 3; i ++)
- {
- sprintf(device, "/dev/unlpt%d", i);
- if (!access(device, 0))
- printf("direct usb:%s \"Unknown\" \"USB Printer #%d\"\n", device, i + 1);
- }
-#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
int i; /* Looping var */
char device[255]; /* Device filename */