Re: inittab weirdness?
Jeremy and Russell; Thanks for more pieces of the puzzle. The offending code is actually in /etc/pcmcia/serial. the chattr +i /etc/inittab command nuked the behaviour but I'll edit that script to fix it when I get to the console on the laptop The relevant lines in /etc/pcmcia/serial: echo "S$NR:12345:respawn:$INITTAB $DEVICE" >> /etc/inittab fgrep -v $DEVICE /etc/inittab > /etc/inittab.new mv /etc/inittab.new /etc/inittab Big thanks to everyone for the suggestions, tips and pointers. And in case no one realized it the command in an earlier post "for i in `find /dir`; do ls -l &&cat $i|grep string;done" was a tongue in cheek joke, but it would find the string and the file its in. Thats the coolest thing about the Linux command line tools. Being able to obtain the same results by varying methods. Thanks again. Tom > >I haven't looked at Debian's pcmcia startup script. > >But I think you could comment out any lines that update the inittab and >restart it. Something like: > >#echo "S$NR:12345:respawn:$INITTAB $DEVICE" >> /etc/inittab >#telinit q > >Or is there some variable (maybe $INITTAB) that is checked? If so, maybe >comment out the lines that define it. > >Hope this helps... > > Jeremy C. Reed > > BSD software, documentation, resources, news... > http://bsd.reedmedia.net/
Re: inittab weirdness?
> Here is a weird one I can't seem to find the cause of. Perhaps it is > inane, harmless, etc but it is annoying. I get these respawning too fast > errors to the console. They go away when I comment out the > S:12345:respawn:/sbin/getty ttyS3 line and init q it. Until a reboot > that is. On Thu, 24 Aug 2000, Security wrote: > Well, I have not totally figured out how this is happening. What I do know > is that /etc/inittab gets altered when the /etc/init.d/pcmcia script is > run. I haven't looked at Debian's pcmcia startup script. But I think you could comment out any lines that update the inittab and restart it. Something like: #echo "S$NR:12345:respawn:$INITTAB $DEVICE" >> /etc/inittab #telinit q Or is there some variable (maybe $INITTAB) that is checked? If so, maybe comment out the lines that define it. Hope this helps... Jeremy C. Reed BSD software, documentation, resources, news... http://bsd.reedmedia.net/
Re: inittab weirdness?
Jeremy and Russell; Thanks for more pieces of the puzzle. The offending code is actually in /etc/pcmcia/serial. the chattr +i /etc/inittab command nuked the behaviour but I'll edit that script to fix it when I get to the console on the laptop The relevant lines in /etc/pcmcia/serial: echo "S$NR:12345:respawn:$INITTAB $DEVICE" >> /etc/inittab fgrep -v $DEVICE /etc/inittab > /etc/inittab.new mv /etc/inittab.new /etc/inittab Big thanks to everyone for the suggestions, tips and pointers. And in case no one realized it the command in an earlier post "for i in `find /dir`; do ls -l &&cat $i|grep string;done" was a tongue in cheek joke, but it would find the string and the file its in. Thats the coolest thing about the Linux command line tools. Being able to obtain the same results by varying methods. Thanks again. Tom > >I haven't looked at Debian's pcmcia startup script. > >But I think you could comment out any lines that update the inittab and >restart it. Something like: > >#echo "S$NR:12345:respawn:$INITTAB $DEVICE" >> /etc/inittab >#telinit q > >Or is there some variable (maybe $INITTAB) that is checked? If so, maybe >comment out the lines that define it. > >Hope this helps... > > Jeremy C. Reed > > BSD software, documentation, resources, news... > http://bsd.reedmedia.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: inittab weirdness?
> Here is a weird one I can't seem to find the cause of. Perhaps it is > inane, harmless, etc but it is annoying. I get these respawning too fast > errors to the console. They go away when I comment out the > S:12345:respawn:/sbin/getty ttyS3 line and init q it. Until a reboot > that is. On Thu, 24 Aug 2000, Security wrote: > Well, I have not totally figured out how this is happening. What I do know > is that /etc/inittab gets altered when the /etc/init.d/pcmcia script is > run. I haven't looked at Debian's pcmcia startup script. But I think you could comment out any lines that update the inittab and restart it. Something like: #echo "S$NR:12345:respawn:$INITTAB $DEVICE" >> /etc/inittab #telinit q Or is there some variable (maybe $INITTAB) that is checked? If so, maybe comment out the lines that define it. Hope this helps... Jeremy C. Reed BSD software, documentation, resources, news... http://bsd.reedmedia.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: inittab weirdness?
List; Well, I have not totally figured out how this is happening. What I do know is that /etc/inittab gets altered when the /etc/init.d/pcmcia script is run. After a bit of looking around in that file, I realized my skill is not refined enough to see what mechanism actually alters it. But it definitely happens at that point. Just FYI Thanks Tom
Re: inittab weirdness?
List; Well, I have not totally figured out how this is happening. What I do know is that /etc/inittab gets altered when the /etc/init.d/pcmcia script is run. After a bit of looking around in that file, I realized my skill is not refined enough to see what mechanism actually alters it. But it definitely happens at that point. Just FYI Thanks Tom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: inittab weirdness?
Try something like egrep -r ttyS3 /etc or similar to see what files reference this. If some script is running at boot and adding this line to inittab (or rebuilding inittab entirely), you can find out where this line is coming from by grepping around /etc. If a line in a script adds this line, comment out that part of the script. It's possible that inittab is created from other files upon boot (like /etc/modules.conf). If that is the case, you can modify whatever base file the line comes from. Grep wisely. -chet - yet he has sorcery On Wed, 23 Aug 2000, Security wrote: > List; > > Here is a weird one I can't seem to find the cause of. Perhaps it is inane, > harmless, etc but it is annoying. I get these respawning too fast errors to > the console. They go away when I comment out the > S:12345:respawn:/sbin/getty ttyS3 line and init q it. Until a reboot that > is. > > Truncated for brevity: > > or [-hiLmw] [-l login_program] [-t timeout] [-I initstring] [-H > login_host] line baud_rate,... [termtype] > INIT: Id "S" respawning too fast: disabled for 5 minutes > > I edit my inittab file to look like this in the last lines: > > > # Example how to put a getty on a modem line. > # > > #S:12345:respawn:/sbin/getty ttyS3 > > After a reboot it looks like this: > > # how to put a getty on a modem line. > > > S:12345:respawn:/sbin/getty ttyS3 > > I did all kinds of things like make the file read only but it still > happens. I have absolutely no need for a getty on a modem line, I am on a > LAN and no phone line ever connects to this box. It is a IBM Thinkpad 701C > Laptop with a brand spanking new potato installed yesterday. It connects > through a Xircom PC card and 10baseT. Perhaps I have a package installed I > don't need or somesuch. > > Personal replies appreciated, but responding to the list helps everyone. > > Your time and any ideas appreciated. > > > Thanks > > Tom > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > >
Re: inittab weirdness?
Hello, I have had the exact same problem with a DEC PC 425se laptop. Its an older machine (486) and I have tried the same things as you with the same results. I am not all too famillar with the inner workings of init, but I still can not figure out why the lines are reset on a reboot. Anyone have an idea? -Todd List; Here is a weird one I can't seem to find the cause of. Perhaps it is inane, harmless, etc but it is annoying. I get these respawning too fast errors to the console. They go away when I comment out the S:12345:respawn:/sbin/getty ttyS3 line and init q it. Until a reboot that is. Truncated for brevity: or [-hiLmw] [-l login_program] [-t timeout] [-I initstring] [-H login_host] line baud_rate,... [termtype] INIT: Id "S" respawning too fast: disabled for 5 minutes I edit my inittab file to look like this in the last lines: # Example how to put a getty on a modem line. # #S:12345:respawn:/sbin/getty ttyS3 After a reboot it looks like this: # how to put a getty on a modem line. S:12345:respawn:/sbin/getty ttyS3 I did all kinds of things like make the file read only but it still happens. I have absolutely no need for a getty on a modem line, I am on a LAN and no phone line ever connects to this box. It is a IBM Thinkpad 701C Laptop with a brand spanking new potato installed yesterday. It connects through a Xircom PC card and 10baseT. Perhaps I have a package installed I don't need or somesuch. Personal replies appreciated, but responding to the list helps everyone. Your time and any ideas appreciated. Thanks Tom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Re: inittab weirdness?
Try something like egrep -r ttyS3 /etc or similar to see what files reference this. If some script is running at boot and adding this line to inittab (or rebuilding inittab entirely), you can find out where this line is coming from by grepping around /etc. If a line in a script adds this line, comment out that part of the script. It's possible that inittab is created from other files upon boot (like /etc/modules.conf). If that is the case, you can modify whatever base file the line comes from. Grep wisely. -chet - yet he has sorcery On Wed, 23 Aug 2000, Security wrote: > List; > > Here is a weird one I can't seem to find the cause of. Perhaps it is inane, > harmless, etc but it is annoying. I get these respawning too fast errors to > the console. They go away when I comment out the > S:12345:respawn:/sbin/getty ttyS3 line and init q it. Until a reboot that > is. > > Truncated for brevity: > > or [-hiLmw] [-l login_program] [-t timeout] [-I initstring] [-H > login_host] line baud_rate,... [termtype] > INIT: Id "S" respawning too fast: disabled for 5 minutes > > I edit my inittab file to look like this in the last lines: > > > # Example how to put a getty on a modem line. > # > > #S:12345:respawn:/sbin/getty ttyS3 > > After a reboot it looks like this: > > # how to put a getty on a modem line. > > > S:12345:respawn:/sbin/getty ttyS3 > > I did all kinds of things like make the file read only but it still > happens. I have absolutely no need for a getty on a modem line, I am on a > LAN and no phone line ever connects to this box. It is a IBM Thinkpad 701C > Laptop with a brand spanking new potato installed yesterday. It connects > through a Xircom PC card and 10baseT. Perhaps I have a package installed I > don't need or somesuch. > > Personal replies appreciated, but responding to the list helps everyone. > > Your time and any ideas appreciated. > > > Thanks > > Tom > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: inittab weirdness?
Hello, I have had the exact same problem with a DEC PC 425se laptop. Its an older machine (486) and I have tried the same things as you with the same results. I am not all too famillar with the inner workings of init, but I still can not figure out why the lines are reset on a reboot. Anyone have an idea? -Todd >List; > >Here is a weird one I can't seem to find the cause of. Perhaps it is inane, >harmless, etc but it is annoying. I get these respawning too fast errors to >the console. They go away when I comment out the >S:12345:respawn:/sbin/getty ttyS3 line and init q it. Until a reboot that >is. > >Truncated for brevity: > >or [-hiLmw] [-l login_program] [-t timeout] [-I initstring] [-H >login_host] line baud_rate,... [termtype] >INIT: Id "S" respawning too fast: disabled for 5 minutes > >I edit my inittab file to look like this in the last lines: > > ># Example how to put a getty on a modem line. ># > >#S:12345:respawn:/sbin/getty ttyS3 > >After a reboot it looks like this: > ># how to put a getty on a modem line. > > >S:12345:respawn:/sbin/getty ttyS3 > >I did all kinds of things like make the file read only but it still >happens. I have absolutely no need for a getty on a modem line, I am on a >LAN and no phone line ever connects to this box. It is a IBM Thinkpad 701C >Laptop with a brand spanking new potato installed yesterday. It connects >through a Xircom PC card and 10baseT. Perhaps I have a package installed I >don't need or somesuch. > >Personal replies appreciated, but responding to the list helps everyone. > >Your time and any ideas appreciated. > > >Thanks > >Tom > > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact >[EMAIL PROTECTED] > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]