|
From: Dominic R. <dl...@ed...> - 2010-10-07 08:52:02
|
Thanks, I have now uploaded the amended beep script (1.4.1) to mantis. Dominic On 07/10/2010 09:26, mailing dl2 wrote: > Good morning.... > > I can confirm you that it works. > > Good job. > > Thanks. > > 2010/10/6 Dominic Raferd<dl...@ed...>: >> Excellent work. So in /etc/init.d/beep, this line should work: >> >> if grep -iq ttyS /proc/cmdline; then >> >> in place of: >> >> if [ "`tty`" = "/dev/console" ]; then >> >> ... and the alternative beeps should be heard only when a serial console >> is actually attached. If you could confirm then I think we have it >> nailed down (at last). Thanks >> >> Dominic >> >> On 06/10/2010 15:55, mailing dl2 wrote: >>> 1) booted a computer on dl1.4rc6 with standard CD: >>> # cat /proc/cmdline >>> initrd=/boot/initrd.gz vga=773 BOOT_IMAGE=/bootvmlinuz >>> >>> 2) enabled serial in inittab (uncommented) >>> S0:2345:respawn:/sbin/agetty ... >>> >>> 3) save-config >>> >>> 4) booted with new configuration >>> # cat /proc/cmdline >>> initrd=/boot/initrd.gz vga=773 BOOT_IMAGE=/bootvmlinuz >>> >>> It looks the same;) >>> >>> 2010/10/6 Dominic Raferd<dl...@ed...>: >>>> From our 'non-serial box': >>>> >>>> # cat /proc/cmdline >>>> initrd=initrd.gz vga=773 BOOT_IMAGE=vmlinuz >>>> >>>> But does /proc/cmdline show if serial console is enabled rather than >>>> whether it is actually attached? >>>> >>>> Can you try this on a box booted without serial console attached (but >>>> with serial console enabled in inittab)? >>>> >>>> Dominic >>>> >>>> On 06/10/2010 14:45, mailing dl2 wrote: >>>>> 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 >>>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> 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 >>>> >>> ------------------------------------------------------------------------------ >>> 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 >> > ------------------------------------------------------------------------------ > 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 > |