[cobbler] Use ip instead of ifconfig

Orion Poplawski orion at cora.nwra.com
Fri Nov 2 15:02:30 UTC 2012


On 11/02/2012 06:44 AM, James Cammarata wrote:
> On Tue, Oct 30, 2012 at 11:34 AM, Orion Poplawski <orion at cora.nwra.com> wrote:
>> I don't know what to say.  It applies fine for me to a freshly cloned git
>> repo from git://github.com/cobbler/cobbler
>
> Found a small problem with this. Apparently despite the fact that the
> OS has had the ip command for quite a while, it is not included even
> in the F17 installer image. I've attached a patch which uses some bash
> functions to figure out which command to use, and wraps the calls in a
> nice way. If you could give it a little testing I'd appreciate it
> (testing it out on f18 alpha now myself).
>

I guess that's what you get for assuming - I thought if the EL6 installer had 
it, Fedora would have, but there you go.

One note - you are redirecting the output of the ip command, but not ifconfig. 
  Seems inconsistent.

Anyways, works for me with F17 and F18.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder Office                  FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com


More information about the cobbler mailing list