[CentOS] grabbing ip address from kickstart pre

Sun Aug 14 20:06:17 UTC 2011
Keith Roberts <keith at karsites.net>

On Sun, 14 Aug 2011, Joseph L. Casale wrote:

> To: 'CentOS mailing list' <centos at centos.org>
> From: Joseph L. Casale <jcasale at activenetwerx.com>
> Subject: Re: [CentOS] grabbing ip address from kickstart pre
> 
>> how can I go about extracting the IP address from with in the %pre section
>>
>> I was going to do something like:
>> cat /proc/cmdline | tr ' '  '\n' | grep ks=http | tr '/'  ' ' | awk {'
>> print $2'}
>>
>> Since tr isnt available how else can I do it?
>
> Jerry,
> You ever solve this? You can do this all with awk alone.

The thing is if it's in the %pre section, AWK would not have 
been installed yet?

Kind Regards,

Keith Roberts


>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

-- 
-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------