|
From: mailing d. <mai...@gm...> - 2010-10-06 13:45:26
|
Maybe grep something in the file /proc/cmdline? >From one of my "serial box": # cat /proc/cmdline console=tty0 console=ttyS0,9600 initrd=initrd.gz vga=NORMAL_VGA BOOT_IMAGE=vmlinuz Regards. 2010/10/6 mailing dl2 <mai...@gm...>: > I also think that using inittab is not the best way to do that. > > Having the serial console enabled in inittab does not mean that the DL > in "serial mode". > I always enable serial acces to our DL boxes even if they are not in > "serial mode". > > Anyway, I can still test it if you want. > > > 2010/10/6 Dominic Raferd <dl...@ed...>: >> Yes I was hoping 'mailing dl2' might try it. >> >> There may be a better way to detect a serial console, if someone can >> suggest it. I chose this because it is the way used in install-on-usb >> (e.g. line 492), so it seemed likely to work. >> >> Dominic >> >> On 06/10/2010 13:31, Heiko Zuerker wrote: >>> I don't do serial mode, somebody else would have to test that. >>> Isn't there a better way than grep'ing the inittab to detect a serial console? >>> >>> Heiko >>> >>> Quoting Dominic Raferd<dl...@ed...>: >>> >>>> Heiko found a problem that the new beeps were being called for all >>>> machines at boot time, not just those using serial. So please can I ask >>>> you, as a serial user, to test the fix by downloading the latest script >>>> in Mantis >>>> https://sourceforge.net/apps/mantisbt/devil-linux/view.php?id=90 and >>>> trying it. The only practical difference is that the line >>>> >>>> if [ "`tty`" = "/dev/console" ]; then >>>> >>>> is replaced with >>>> >>>> if grep "^S0:2345:respawn:/sbin/agetty" /etc/inittab>/dev/null; then >>>> >>>> Dominic >>>> >>>> On 06/10/2010 12:52, mailing dl2 wrote: >>>>> Hello, >>>>> >>>>> In the 1.4rc6 the new lines a commented in the /etc/init.d/beep scripts. >>>>> >>>>> So it does not work "out of the box". >>>>> >>>>> If you uncomment them it works. >>>>> >>>>> Thanks for the modifications. >>>>>> I added it to CVS. >>>>>> I didn't get a chance to validate it myself yet, so I hope this works. ;-) >>>>>> Heiko >>>> ------------------------------------------------------------------------------ >>>> Beautiful is writing same markup. Internet Explorer 9 supports >>>> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >>>> Spend less time writing and rewriting code and more time creating great >>>> experiences on the web. Be a part of the beta today. >>>> http://p.sf.net/sfu/beautyoftheweb >>>> _______________________________________________ >>>> Devil-linux-discuss mailing list >>>> Dev...@li... >>>> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss >>>> >>> >>> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today. >> http://p.sf.net/sfu/beautyoftheweb >> _______________________________________________ >> Devil-linux-discuss mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss >> > |