[H-GEN] Setserial Command

Doug Young dougy at gargoyle.apana.org.au
Wed May 12 23:05:33 EDT 1999


(Note reply-to: being general at humbug.org.au vs "Doug Young" <dougy at gargoyle.apana.org.au>)

Thanks Josh .... I had it right as far as making an  "/etc/rc.d/rc.serial"
file
but didn't know about "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


-----Original Message-----
From: Marshall, Joshua <MarshallJ at switch.aust.com>
To: general at lists.humbug.org.au <general at lists.humbug.org.au>
Date: Thursday, May 13, 1999 9:34 AM
Subject: RE: [H-GEN] Setserial Command


>(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.
>


--
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