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 10:07:05 -0400
gary%duzan.org@localhost wrote:
>    Note that that isn't universal across Linux. I have at least one
> fairly modern Linux box at work which renames the interfaces from
> eth# to something else.

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.

Or, I could create a script that generates all my files that I call
with the server that I want it to be.  Call it as;

  make_server [web|db|mail|phone|admin]

Then create templates for the different servers.  That would solve the
fstab problem as well.

-- 
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