Current-Users archive

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

Re: Finding the current network devices



On Sun, 18 Oct 2015 16:20:15 +0000 (UTC)
christos%astron.com@localhost (Christos Zoulas) wrote:
> >In any case the other problem is that variable names can't be
> >variable.  I can't do "ifconfig_$eth0="etc...".  I quess I just have
> >to remember to edit the files when I move a server.
> 
> sure they can, just eval them.

I tried that but it didn't work.  Maybe I did it wrong.  I will try
again.

OK, it did work.  Not sure what I did the first time.

eval "ifconfig_`ifconfig -lb | cut -d' ' -f2`=\"BLAH BLAH BLAH\""

Thanks.

-- 
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/ IM:darcy%Vex.Net@localhost


Home | Main Index | Thread Index | Old Index