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
> I incorporate this code, the only changes
> to the image a user needs to perform are
> conducted in "syslinux.cfg": a new first
> line
> 
>       serial 0 19200
> 
> and three simple additions to the "default"-line:
> 
>     console=ttyS0,19200n8 LEAF_NO_VGA=1 LEAF_TTYS0=1
> 
> Thereby all vga delivered consoles are switch off,
> and the serial console ttyS0 is activated for login.
> This method completely solves my needs.
> 
> The difference file follows presently.
> 
> Best regards
> 
> Mats Erik Andersson
> 
> 
> --- test/root.linuxrc   2008-01-10 22:49:32.000000000 +0100
> +++ test/linuxrc        2008-01-11 00:03:26.000000000 +0100
> @@ -299,4 +299,14 @@
>  Lecho "Loaded Packages"
> 
> +ITT=/etc/inittab
> +
> +if [ -n "$LEAF_NO_VGA" ]; then
> +       sed -i 's/^tty[1-9]\+.*/#&/' $ITT
> +fi
> +
> +if [ -n "$LEAF_TTYS0" ]; then
> +       sed -i 's/^#\(ttyS0.*\)/\1/' $ITT
> +fi

Why do you use two distinct parameters?

cheers

Erich



-------------------------------------------------------------------------
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

Reply via email to