What is the best way to set variables depending on environment?

Janne Jokitalo janne.jokitalo at dnainternet.net
Fri Sep 9 02:20:49 UTC 2005


Derek Broughton wrote:
>>I did. If I understood it correctly, it requires MAC address for the DHCP
>>server. Which I don't have. Might even not get.
> 
> arping -I etho ip-address

Thanks!

> and if you don't know the IP of the DHCP server, either check the leases
> file or "grep DHCP /var/log/syslog".

That shouldn't be a problem. Thanks anyway. :)

> Sure it will.  Whereami works great, at least for wired interfaces - I'm
> still trying to build my wireless network and haven't tried to find out if
> whereami can handle wireless.

Well, then it's a problem. See, at work the connection is available by an
ethernet cable, at home by wireless network card. But I found a somewhat
good page concerning laptop-netconf, I'll see if I can configure the
interfaces correctly with that. Only grief I have is, does laptop-netconf
include auto-probing, or do I need to use guessnet or similar for passing
the correct network name to laptop-netconf for it to do its magic?


Thanks!


-- 
Jaska





More information about the ubuntu-users mailing list