Bug#514916: Slightly better way.

2009-02-19 Thread Chris Lamb
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, -- ,''`. : :' :

Bug#514916: Slightly better way.

2009-02-19 Thread Robin Lee Powell
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/class/net/*

Bug#514916: Slightly better way.

2009-02-18 Thread Robin Lee Powell
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