bcb516a133
ports: /dev/ttyp?!
20 lines
717 B
Plaintext
20 lines
717 B
Plaintext
$OpenBSD: patch-serialposix_py,v 1.2 2011/07/20 15:50:13 sthen Exp $
|
|
--- serial/serialposix.py.orig Sat Jun 21 23:08:43 2008
|
|
+++ serial/serialposix.py Wed Jul 20 16:48:47 2011
|
|
@@ -35,13 +35,12 @@ elif plat == 'cygwin': #cywin/win32 (confirmed)
|
|
def device(port):
|
|
return '/dev/com%d' % (port + 1)
|
|
|
|
-elif plat == 'openbsd3': #BSD (confirmed)
|
|
+elif plat[:7] == 'openbsd':
|
|
def device(port):
|
|
- return '/dev/ttyp%d' % port
|
|
+ return '/dev/cua%02d' % port
|
|
|
|
elif plat[:3] == 'bsd' or \
|
|
plat[:7] == 'freebsd' or \
|
|
- plat[:7] == 'openbsd' or \
|
|
plat[:6] == 'darwin': #BSD (confirmed for freebsd4: cuaa%d)
|
|
def device(port):
|
|
return '/dev/cuad%d' % port
|