On Wednesday 11 December 2002 18:21, Guillaume Cottenceau wrote:
> John Allen <[EMAIL PROTECTED]> writes:
> > On Monday 09 December 2002 22:36, Guillaume Cottenceau wrote:
> > > John Allen <[EMAIL PROTECTED]> writes:
> > > > The following patch to mkinitrd will prevent monumental screwups when
> > > > your fstab accidentally contains multiple entries for / (k3b screwed
> > > > mine over).
> > >
> > > [gc@obiwan ~] which head
> > > /usr/bin/head
> > >
> > > not good
> >
> > I'm confused. Whats not good about /usr/bin/head?
>
> mkinitrd must work even if /usr in not mounted
>
> > After all mkinitrd uses awk, and thats in /usr/bin
>
> why do you say that?

OK, the /usr/bin/awk is symlinked to ../../bin/awk -> gawk

I'm sure the same can be achieved with awk directly.
eg.
awk 'BEGIN { x=0; } { if ($1 !~ /^[ \t]*#/ && $2 == "/") { if (x == 0) { print 
$3; x++; }}}' /etc/fstab

Maybe head/tail should be in /bin also?


**********************************************************************
The information contained in this message is confidential and 
is intended for the addressee(s) only.  If you have received 
this message in error or there are any problems please notify 
the originator immediately.  The unauthorised use, disclosure, 
copying or alteration of this message is strictly forbidden. This
message and any attachments have been scanned for viruses.
Orbiscom Ltd. will not be liable for direct, special, indirect or 
consequential damages arising from alteration of the contents 
of this message by a third party or as a result of any virus being
passed on.


www.Orbiscom.com
**************************************


Reply via email to