Hi,

You can try:
1. Setting up your host name correctly in /etc/hosts and /etc/rc.conf. (Arch)
2. In ~/.profile: export HOSTNAME
3. In rc.lua:
if host == "host1" then
  xxxx
elseif host == "host2" then
  yyyy
end

Best,
mic

On 09/07/2010 05:55 PM, Bill Sun wrote:
Hi list:

I want to judge hostname in rc.lua, in order to have different settings in 
different
hosts.

thanks.


--
To unsubscribe, send mail to [email protected].

Reply via email to