National Instruments PCI-485/4 Tablet User Manual


 
© National Instruments Corporation 17 Using PCI Serial with Linux
3. Add the following segment to the end of the file (not necessary for
Debian distribution):
if [ -f /etc/rc.d/rc.serial ]; then
sh /etc/rc.d/rc.serial
fi
Sample /etc/rc.d/rc.serial File
#
# /etc/rc.d/rc.serial
# Initializes the serial ports on your system
#
# Distributed with setserial version 2.14
#
# Standard flags you want your serial devices to have
# Examples: SAK, pgrp_lockout, session_lockout
#
STD_FLAGS="session_lockout"
SETSERIAL=/bin/setserial
echo -n "Configuring serial ports...."
# Do wild interrupt detection
#
${SETSERIAL} -W /dev/cua0
###############################################################
#
# AUTOMATIC CONFIGURATION
#
###############################################################
# Do AUTOMATIC_IRQ probing
#
AUTO_IRQ=auto_irq
# These are the standard COM1 through COM4 devices
#
#
${SETSERIAL} /dev/cua0 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
${SETSERIAL} /dev/cua1 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
${SETSERIAL} /dev/cua2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
${SETSERIAL} /dev/cua3 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
###############################################################
#
# MANUAL CONFIGURATION
#
###############################################################