shouldn't this: source /etc/rc.d/config/serial be this: source /etc/conf.d/serial /etc/rc.d doesn't exist, let alone /etc/rc.d/config/ :) Where's "setports" defined? This is setting up a ttyS0 with a 16550 UART on IRQ4 which doesn't exist on my laptop. I only have USB serial on the laptop.
Yes, nobody ever really use it. I do not use/have anything that works with USB serial ... make a patch that works, and Ill add it. I will consider moving it to the setserial package (the rc-script): -------------------------------------------------------- nosferatu root # epm -qf `which setserial` setserial-2.17-r2 nosferatu root #
Created attachment 9998 [details] "serial" int script. reads /etc/serial.conf I need the "serial" init script to set up my ports correctly (with low_latency), so I have changed the script to read /etc/serial.conf file that comes with the "setserial" package and fixed some minor bugs. Perhaps this can be included in the setserial package?
keywords: setserial /etc/serial.conf /etc/init.d/serial lirc lirc_serial lirc_sir i discovered this bug, too. i wanted to use lirc but noticed that the serial devices are always asigned to serial.o (in case it's a module), as this module always gets loaded very early during the boot-process, even before modules (e.g. lirc_serial.o) listed in /etc/modules.autoload.d/* are modprobed. I don't know what causes this. As there are no kernel-bootparams to tweak the serial-driver, you have to use setserial which should be used within startscripts (/etc/init.d/serial, Debian GNU/Linux: /etc/init.d/setserial). the script http://bugs.gentoo.org/attachment.cgi?id=9998&action=view works fine for me, although it doesn't seem to conform to Gentoo-guidelines(!?)(maybe i'll write a conforming one). by intuition i prefer having the config-file /etc/serial.conf over /etc/conf.d/serial... . to free my second serial port in order to give it to lirc_serial.o respectively lirc_sir.o, i put "/dev/ttyS1 uart none" line in /etc/serial.conf of course, not compiling the serial driver or unloading the module and then loading the lirc driver module works, too. please fix it. TIA
bug 22457 is identical:: http://bugs.gentoo.org/show_bug.cgi?id=22457
baselayout-1.8.6.13 still has the broken /etc/init.d/serial (yes, it was my own fault that I let it overwrite the good script found in <http://bugs.gentoo.org/attachment.cgi?id=9998&action=view>). Can the script in that attachment please replace the /etc/init.d/serial that comes with baselayout? This script works, the current one from baselayout does not. To load the lirc_serial module before the serial_core module (with kernel 2.6), I have a line below serial_core lirc_serial in /etc/modules.d/lirc, so lirc_serial can grab its port before serial_core.
*** Bug 22457 has been marked as a duplicate of this bug. ***
added to cvs ... hope no one kills me for it :) thanks for the script !