Re: r72381 - trunk/src/debian-edu-install

2010-12-31 Thread Holger Levsen
Hi,

On Freitag, 31. Dezember 2010, p...@alioth.debian.org wrote:
 New Revision: 72381
 +for iface in $(ip -o link | grep '^.: eth'|cut -d: -f2) ; do

This doesnt work on my laptop:

$ ip -o link | grep '^.: eth'
$ ip -o link | grep '^..: eth'|cut -d: -f-2
66: eth0
$

So I'd suggest to use grep '^[0-9]+: eth' or such instead.


cheers,
Holger


signature.asc
Description: This is a digitally signed message part.


Re: r72381 - trunk/src/debian-edu-install

2010-12-31 Thread Petter Reinholdtsen
[Holger Levsen]
 Hi,

Hi.

 This doesnt work on my laptop:

Not even from within d-i, where this code is executed?

 $ ip -o link | grep '^.: eth'
 $ ip -o link | grep '^..: eth'|cut -d: -f-2
 66: eth0
 $

I find it hard to believe d-i will assign 66 to eth0 on any laptop by
default.  Did you test?  If so, what is the complete list from ip -o
link?

 So I'd suggest to use grep '^[0-9]+: eth' or such instead.

Not sure if the busybox grep handle it, but will try.

Happy hacking
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-edu-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20101231152200.gb23...@login1.uio.no



Re: r72381 - trunk/src/debian-edu-install

2010-12-31 Thread Holger Levsen
On Freitag, 31. Dezember 2010, Petter Reinholdtsen wrote:
 Not even from within d-i, where this code is executed?

haven't tried.


signature.asc
Description: This is a digitally signed message part.