View Full Version : Tracking down an env variable
finnstang
11-08-2006, 02:04 PM
With TWP v.1.4 beta, it has the ability to show the name of the TiVo automatically in the header as long as it is set using the HOSTNAME variable. I tried setting this variable in the author file, but it didn't take. So I checked and the HOSTNAME variable is already being set to (empty) on all 3 of my 6.2 DTiVo's and on my 6.3a HR10. So my question is, how do I find where this variable is being set during boot? I have grep'd around a lot and can't find anything. Is it possible to track it down or force it to take my value over the (empty)? TIA
cheer
11-08-2006, 03:13 PM
How are you setting it in your .author? And are you setting it before you launch twp?
finnstang
11-08-2006, 03:24 PM
setting it using:
export HOSTNAME=LivingRoom
at the top of my author file before TWP is launched. If I telnet in after rebooting and do:
echo $HOSTNAME It comes back saying that it is (empty). If I change the variable to POOP in both the author script and load.tcl, it works fine.
ETA: If I type env at the bash prompt on any of my DTiVos (all either 6.2 or 6.3a) it shows that HOSTNAME is already being set and is (empty).
finnstang
11-08-2006, 03:27 PM
oooooooops
cheer
11-08-2006, 10:56 PM
Do you have AlphaWolf's AIO utils installed? If so, don't use export, use the hostname command:/busybox/hostname LivingRoom
finnstang
11-09-2006, 08:38 AM
Do you have AlphaWolf's AIO utils installed? If so, don't use export, use the hostname command:/busybox/hostname LivingRoom
Yeah I have them installed. I will give it a shot and let you know how it works. Thanks.
finnstang
11-09-2006, 09:02 AM
Yep...that worked. Put your statement in my author, rebooted and then did an env from the prompt and HOSTNAME=LivingRoom finally! Thanks cheer.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.