lkml.org 
[lkml]   [1999]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [patch] v1.01 of /proc/.config (ready to eat)
    Date
    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 (cat@zip.net.au) URL: http://www.zip.com.au/dev/null

    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 majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

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