[H-GEN] Setserial Command
Marshall, Joshua
MarshallJ at switch.aust.com
Wed May 12 19:33:03 EDT 1999
(Note reply-to: being general at humbug.org.au vs "Marshall, Joshua" <MarshallJ at switch.aust.com>)
Does anyone have experience using "Setserial" in Redhat 6 to force linux
to
automatically set /dev/ttyS2 to irq 5 and /dev/ttyS3 to irq 7 on boot ??
This is what I've done:
Create the file /etc/rc.d/rc.serial
#!/bin/sh
# This script configures the serial ports.
setserial /dev/ttyS0 port 0x3F8 irq 4
setserial /dev/ttyS1 port 0x2F8 irq 3
setserial /dev/ttyS2 port 0x3E8 irq 5
setserial /dev/ttyS3 port 0x2E8 irq 7
And call /etc/rc.d/rc.serial from your /etc/rc.d/rc.sysinit script:
# Initialize the serial ports.
if [ -f /etc/rc.d/rc.serial ]; then
. /etc/rc.d/rc.serial
fi
The kernel initially detects the ports incorrectly but this fixes it
later in the boot. Works great for me!
Cheers,
Josh.
--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.
More information about the General
mailing list