[H-GEN] setting serial ports
Robert Brockway
robert at timetraveller.org
Wed Jul 14 01:25:27 EDT 2004
On Wed, 14 Jul 2004, David Munn wrote:
> in Fedora i have the PPT on ttyS0 and the modem on ttyS3 via the port
> card....i added the following command in the rc.local script and it
> loads the second port very well...setserial /dev/ttyS3 port 0xd400 uart
> 16550A irq 5 baud_base 115200...
> however when it comes to Debian Sarge there is no such script and i have
> tried to put the command into various places with no luck...
> when i start Debian i have to manually put the command in to get the
> modem to work...would love the auto way.....
>
> can anyone help me with this problem....
Thkis is what I normally do in a case like this:
Bring your rc.local script over to the Debian box and put it in as
/etc/init.d/local, making sure it is executable. Make sure it starts with
#!/bin/bash. Also, make sure full paths to binaries are set correctly -
some may be different under Debian.
Then determine what runlevel you use on the system. Debian defaults to
using runlevel 2. This will be the case unless you or another admin has
changed the default runlevel (set in /etc/inittab normally). Assuming
runlevel 2, do this:
cd /etc/rc2.d
ln -s ../init.d/local S99local
This will start the local script close to the end of the boot sequence.
If you need to start it earlier (before other services) lower the number
to put it before the other entries, so S39 will go before S40 for example.
Voila' :)
Rob
--
Robert Brockway B.Sc. email: robert at timetraveller.org, rbrockway at uqconnect.net
Linux counter project ID #16440 (http://counter.li.org)
"The earth is but one country and mankind its citizens" -Baha'u'llah
More information about the General
mailing list