Harondel J. Sibble wrote: > > On 16 Aug 2007 at 22:12, Roger Heflin wrote: > >>>> You can put a file on your file system that has a name of: >>>> 10.13.14.15 with the hostname in the file and then do this: > > Did that, file is named 10.13.14.15, only contents are the hostname of "mvp- > spareroom" without quotes. > >>> You mean in the directory I mount and use to store the settings file? >>> >>>> export HNAME=`hostname` >>>> hostname `cat /path/$HNAME` >>>> export HNAME=`hostname` >>> Also part of the problem is there is no hostname being picked up by the mvp > > I adjusted the second line above to: > > hostname `cat /mvpmc-media/settings/$HNAME` > >> The code above will take a file off of the mounted disk and put what is >> in that file as the hostname, and then set the variable as HNAME. The >> filename is the IP address and the contents are the hostname that goes >> with that IP address. > > I'd assumed that should show the hostname at the shell level
Shells only proprogate things down not up, so nothing above (other shells branch out above) will have it set. >>> # cat /etc/udhcpc.config >>> DONGLE=dongle.bin.mvpmc >>> SERVER=10.13.14.15 >>> IP=10.13.14.145 >>> HNAME= > > HNAME is still blank > And that is set by dhcp, so that won't change. > > Interestingly enough, with all the mvpmc options on one line it boots up > normally even using the -F option, I also removed the 2 *'s on either side of > the -F stuff, what's the significant of the *'s? > I though the same thing as Tom did, that the ** were there to show what you were talking about, they aren't supposed to be there at all. > > It works, it just works better on 1 line ;-) And as a bonus now the music > client always shows up in the menu without me having to redo the mclient ip > address everytime I do a reboot on the mvp. > > One thing that is puzzling me is that the config file that is saved never > changes..... when viewed from linux it just has the ip address of the mythtv > backend as such > > # cat 10.12.13.145.config > [EMAIL PROTECTED] mvpmc-settings]# > > while viewed from windows via samba share, I see the following (check out > image since I am not sure it will translate correctly via email) > > http://www.pdscc.com/troubleshooting/saving%20mvp%20config%20file.jpg > > Also some of the settings are not restored when I reboot the mvp after > saving. The config file is binary, so most of the odd stuff that shows up is the config options. You probably want to try both the link trick and the -F trick and see if they both fail, when you try the -F trick make sure that the link is not there. And as Tom says, you can "telnet xx.x.x.x" into the box do "ps" and kill the running mvpmc and restart it manually with your options and other steps and test it alot faster that way. You might also want to download the nightly build as it has some nice options added since 3.3 and it appears to be fairly stable, I have been running the nightly builds for several months with reasonable luck. Roger Roger ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mvpmc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mvpmc-users mvpmc wiki: http://mvpmc.wikispaces.com/
