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

# set
HOME='/'
IFS='
'
LOGNAME='root'
PATH='/usr/sbin:/bin:/usr/bin:/sbin'
PPID='51'
PS1='# '
PS2='> '
PS4='+ '
PWD='/'
SHELL='/bin/sh'
TERM='vt102'
TZ='CST+6CDT,M4.1.0/2,M10.5.0/2'
USER='root'
_='hostname'
#
 
> > # cat /etc/udhcpc.config
> > DONGLE=dongle.bin.mvpmc
> > SERVER=10.13.14.15
> > IP=10.13.14.145
> > HNAME=

HNAME is still blank

> >> You could avoid using the -F option similar to this:
> >> ln -s /video/tv/${HNAME}.cfg /etc/browser.config
> It is the default config file that is used without a -F option (I 
> believe it is the same as the -F file).   Without the -F (and maybe
> with the -F even) it will read the browser.conf for settings...

I'll try that next and report back.
 
> >> and then run mvpmc without the -F option and it will use the default 
> >> file that is symbolically linked to the default name.

Interestingly, settings saving is working, however the file I am saving too 
is not being updated after I make changes and save again
 
> You started mvpmc twice in your config file:
> That will leave 2 separate copies of the mvpmc executable running on a
> machine that can barely run 1 copy.   Most likely the -F option just
> pushes things enough to cause it to break immediately.     The & puts
> the copy into the background and both are started at almost the same
> time so will likely run the mvpmc machine out of ram and result in
> odd failures.    Try the "ps" command and see what is running, there

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?
 
> >> So resources could be the reason. And also there is only one
> >> display/audio setup to manage so the second one won't be able to do
> >> anything. 

Looks like you hit it on the money there.
 
> >> I would put all of the options on one mvpmc line.
> > I tried that, no joy.
> It is not going to work on 2 lines.

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.



 

-- 
Harondel J. Sibble 
Sibble Computer Consulting
Creating solutions for the small business and home computer user.
[EMAIL PROTECTED] (use pgp keyid 0x3AD5C11D) http://www.pdscc.com
(604) 739-3709 (voice/fax)      (604) 686-2253 (pager)


-------------------------------------------------------------------------
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/

Reply via email to