Re: Accessing boot: prompt options inside KS script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 21 May 2005 Christian.Rohrmeier@xxxxxxxxxxx wrote:

>I extracted the commandline options like this:
>ip=`grep ip /proc/cmdline | sed 's/.*ip=//' |sed 's/ .*//'`

Excessive sloping matchstick substitutions in sed make my eyes water - I
find it conceptually easier to break at whitespace into separate lines:

$ busybox tr -s ' ' '\n' < /proc/cmdline | busybox grep ^ip=

One can of course remove the "busybox" wrapper in the kickstart
environment itself, although it doesn't hurt.


Cheers,
Phil


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux