On Thu, Feb 19, 2009 at 09:19:02AM +, Chris Lamb wrote:
> Robin Lee Powell wrote:
>
> > + for nic in $(ifconfig -a | grep '^[^ ]' | grep -v '^lo' |
> >sed 's/ .*//' | tr '\012' ' ')
>
> That's horrible. What's wrong with:
>
> for IF in /sys/clas
Robin Lee Powell wrote:
> + for nic in $(ifconfig -a | grep '^[^ ]' | grep -v '^lo' |
>sed 's/ .*//' | tr '\012' ' ')
That's horrible. What's wrong with:
for IF in /sys/class/net/*
do
# ...
done
Regards,
--
,''`.
: :' : Ch
I'm now working on etch FAI, and ran into a totally different set of
bugs.
-_-
As a side effect, I've come up with a more general (in the sense of
working with the older stuff), faster way of dealing with the
multiple ethernet thing. It stops when any one NIC is done.
--- live.orig 2009-02-1