[lkml]   [1999]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] v1.01 of /proc/.config (ready to eat)
Alan Cox wrote the following:
> > On Sat, Mar 13, 1999 at 02:12:42PM +0000, Alan Cox wrote:
> > >
> > > (cat $tmp1; sed -e "s/^CONFIG_//" <.config; cat $tmp2) > ./kernel/dconfig_buf.c
> >
> > Removing "^" from the sed pattern will save some more bytes:
> >
> > (cat $tmp1; sed -e "s/CONFIG_//" <.config; cat $tmp2) > ./kernel/dconfig_buf.c
> >
> > > (free compression 8))
> > :-)
> Umm
> (cat $tmp1; sed -e "s/^CONFIG_//" <.config | grep -v "^#"; cat $tmp2)
> ??

I think for this patch to be somewhat useful it's best that it's usefulness
is as easily attained as possible. Since the best use I can think for this
is to 'rescue' a lost .config file the easiest way to get this would be to

cp /proc/.config /usr/src/linux

and the type of editing above would just complicate matters at best.

(if there's better uses for this I'd wanna hear them, but that's the main
thing I'd use it for... well... the only thing really :)

CaT ( URL:

An electricity provider of New Hampshire, US has advised it's customers
that in the event of a power failure they can log on to its website for
more information... - Paraphrased from the New Scientist, Feb 6, 1999

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:50    [W:0.091 / U:6.032 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site