"lp"
"lp" }; AllKnownParallelPorts=temp; } else if(osName.equals("FreeBSD")) { String[] temp={ "lpt"
	private void registerScannedPorts()	{		String[] devs;		if(osName.toLowerCase().indexOf("windows") != -1 )		{			String[] temp = { "COM1", "COM2","COM3","COM4" };			devs=temp;		}		else		{			File dev = new File( deviceDirectory );			String[] temp = dev.list();			devs=temp;		}		String[] AllKnownSerialPorts;		if(osName.equals("Linux"))		{			String[] Temp = {			"comx",      // linux COMMX synchronous serial card			"holter",    // custom card for heart monitoring			"modem",     // linux symbolic link to modem.			"ttyircomm", // linux IrCommdevices (IrDA serial emu)			"ttycosa0c", // linux COSA/SRP synchronous serial card			"ttycosa1c", // linux COSA/SRP synchronous serial card			"ttyC", // linux cyclades cards			"ttyCH",// linux Chase Research AT/PCI-Fast serial card			"ttyD", // linux Digiboard serial card			"ttyE", // linux Stallion serial card			"ttyF", // linux Computone IntelliPort serial card			"ttyH", // linux Chase serial card			"ttyI", // linux virtual modems			"ttyL", // linux SDL RISCom serial card			"ttyM", // linux PAM Software's multimodem boards				// linux ISI serial card			"ttyMX",// linux Moxa Smart IO cards			"ttyP", // linux Hayes ESP serial card			"ttyR", // linux comtrol cards				// linux Specialix RIO serial card			"ttyS", // linux Serial Ports			"ttySI",// linux SmartIO serial card			"ttySR",// linux Specialix RIO serial card 257+			"ttyT", // linux Technology Concepts serial card			"ttyUSB",//linux USB serial converters			"ttyV", // linux Comtrol VS-1000 serial controller			"ttyW", // linux specialix cards			"ttyX", // linux SpecialX serial card			};			AllKnownSerialPorts=Temp;		}		else if(osName.equals("Irix"))		{			String[] Temp = {			"ttyc", // irix raw character devices			"ttyd", // irix basic serial ports			"ttyf", // irix serial ports with hardware flow			"ttym", // irix modems			"ttyq", // irix pseudo ttys			"tty4d",// irix RS422			"tty4f",// irix RS422 with HSKo/HSki			"midi", // irix serial midi			"us"    // irix mapped interface			};			AllKnownSerialPorts=Temp;		}		else if(osName.equals("FreeBSD")) //FIXME this is probably wrong		{			String[] Temp = {			"cuaa"  // FreeBSD Serial Ports			};			AllKnownSerialPorts=Temp;		}		else if(osName.equals("NetBSD")) // FIXME this is probably wrong		{			String[] Temp = {			"tty0"  // netbsd serial ports			};			AllKnownSerialPorts=Temp;		}		else if(osName.equals("HP-UX"))		{			String[] Temp = {			"tty0p",// HP-UX serial ports			"tty1p" // HP-UX serial ports			};			AllKnownSerialPorts=Temp;		}		else if(osName.equals("BeOS"))		{			String[] Temp = {			"serial" // BeOS serial ports			};			AllKnownSerialPorts=Temp;		}				else if(osName.toLowerCase().indexOf("windows") != -1 )		{			String[] Temp = {			"COM"    // win32 serial ports			};			AllKnownSerialPorts=Temp;		}		else		{			if (debug)				System.out.println(osName + " ports have not been entered in RXTXCommDriver.java.  This may just be a typo in the method initialize().");			AllKnownSerialPorts=null;		}	/** Get the Parallel port prefixes for the running os	* Holger Lehmann	* July 12, 1999	* IBM	*/		String[] AllKnownParallelPorts;		if(osName.equals("Linux"))		{			String[] temp={				"lp"    // linux printer port			};			AllKnownParallelPorts=temp;		}		else  /* printer support is green */		{			String [] temp={};			AllKnownParallelPorts=temp;		}		if (devs==null)		{			if (debug)				System.out.println("RXTXCommDriver:registerScannedPorts() no Device files to check ");			return;		}		String[] AllKnownRS485Ports={};		String[] AllKnownI2CPorts={};		String[] AllKnownRAWPorts={};		registerValidPorts(			devs,			getPortPrefixes(AllKnownSerialPorts),			CommPortIdentifier.PORT_SERIAL		);		registerValidPorts(			devs,			getPortPrefixes(AllKnownParallelPorts),			CommPortIdentifier.PORT_PARALLEL		);		registerValidPorts(			devs,			getPortPrefixes(AllKnownRS485Ports),			CommPortIdentifier.PORT_RS485		);		registerValidPorts(			devs,			getPortPrefixes(AllKnownI2CPorts),			CommPortIdentifier.PORT_I2C		);		registerValidPorts(			devs,			getPortPrefixes(AllKnownRAWPorts),			CommPortIdentifier.PORT_RAW		);	}