So I noticed while hacking on some shell scripts under Toastman Tomato to behave when called from different routers that there is no environment variable (e.g. $HOSTNAME) containing the host name. I also noticed that there is no 'hostname' shell command or busybox command (although Google searches show that some other versions of busybox do have such a thing). The interesting thing is that the shell prompt, system logger, etc., all seem to be aware of the hostname. I was eventually able to find two methods to retrieve the hostname that do work: uname -n nvram get lan_hostname Is one method considered better than the other? Is there a method I don't know about that's even better than either of those?