Hello Erich, fre 2008-01-11 klockan 11:41 +0100 skrev Erich Titl: > Mats > > Mats Erik Andersson schrieb: > > Hello all, > > > > I have found a smooth solution to configure > > serial access for factory delivered Bering > > images, by adding seven lines of code to > > the "linuxrc" file in "initrd.lrp". When
> > console=ttyS0,19200n8 LEAF_NO_VGA=1 LEAF_TTYS0=1 > > > Why do you use two distinct parameters? The intention was to give users of a vga console a way of adding the serial console and still keeping the vga screen console. I intentionally only touched ttyS0, thus leaving ttyS1 for later configuration. The best solution is of course to let LEAF_NO_VGA take care of both changes in one go, as you implicitely suggests. The new difference text does this. By method LEAF_NO_VGA and LEAF_TTYS0 are harmless when used simultaneously, since the latter now has no effect once the first was called for. Regards Mats E A --- test/root.linuxrc 2008-01-10 22:49:32.000000000 +0100 +++ test/linuxrc 2008-01-11 12:39:20.000000000 +0100 @@ -299,4 +299,14 @@ Lecho "Loaded Packages" +ITT=/etc/inittab + +if [ -n "$LEAF_NO_VGA" ]; then + sed -i 's/^tty[1-9]\+.*/#&/; s/^#\(ttyS0.*\)/\1/' $ITT +fi + +if [ -n "$LEAF_TTYS0" ]; then + sed -i 's/^#\(ttyS0.*\)/\1/' $ITT +fi + exec /usr/sbin/chroot . sh -c 'umount /initrd; freeramdisk /dev/ram0; exec /sbin/init' <dev/console >dev/console 2>&1 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ leaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/leaf-devel
