[svlug] serial module: pre/post-install does not work

Ray Olszewski ray at comarre.com
Mon May 8 07:29:57 PDT 2000

Are you really saying that the command

        /etc/init.d/setserial modload > /dev/null 2> /dev/null

works properly from the command line? Since setserial takes its settings
from stdin, I would expect you to need to enter it as 

        /etc/init.d/setserial < modload > /dev/null 2> /dev/null
If that guess is wrong, the obvious way to debug is to change the entries to

        /etc/init.d/setserial modload >/tmp/somename 2>&1

and see what setserial *says* is going wrong.

At 12:36 PM 5/7/00 -0700, Erik Steffl wrote:
>  on a debian unstable + three serial ports (one of them internal modem
>on /dev/ttyS2) I have following lines in /etc/modules.conf:
>post-install serial /etc/init.d/setserial modload > /dev/null 2>
>pre-remove serial /etc/init.d/setserial modsave  > /dev/null 2>
>  the two commands save and load serial options to/from file
>/var/run/setserial.conf, however they are not executed when the module
>is loaded or removed (either automatically or by insmod/rmmod) [or they
>are executed but fail]
>  both commands work fine when I execute them from command line (they
>set up the serial port properly and save valid configuration)
>  how do I debug this? any ideas what's going on?

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA           	 	         ray at comarre.com        

More information about the svlug mailing list