summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xabs/core/LinHES-config/systemconfig.py51
1 files changed, 39 insertions, 12 deletions
diff --git a/abs/core/LinHES-config/systemconfig.py b/abs/core/LinHES-config/systemconfig.py
index 07b2820..1af9daf 100755
--- a/abs/core/LinHES-config/systemconfig.py
+++ b/abs/core/LinHES-config/systemconfig.py
@@ -53,25 +53,52 @@ def setup_x(systemconfig):
def generate_config_xml(uuid,dbhost):
- configxml_t ='''
-<Configuration>
+ #configxml_t ='''
+#<Configuration>
+ #<UPnP>
+ #<UDN>
+ #<MediaRenderer>%s</MediaRenderer>
+ #</UDN>
+ #<MythFrontend>
+ #<DefaultBackend>
+ #<DBHostName>%s</DBHostName>
+ #<DBUserName>mythtv</DBUserName>
+ #<DBPassword>mythtv</DBPassword>
+ #<DBName>mythconverg</DBName>
+ #<DBPort>0</DBPort>
+ #</DefaultBackend>
+ #</MythFrontend>
+ #</UPnP>
+#</Configuration>
+ #'''
+ configxml_t='''
+ <Configuration>
+ <LocalHostName>my-unique-identifier-goes-here</LocalHostName>
+ <Database>
+ <PingHost>1</PingHost>
+ <Host>%s</Host>
+ <UserName>mythtv</UserName>
+ <Password>mythtv</Password>
+ <DatabaseName>mythconverg</DatabaseName>
+ <Port>3306</Port>
+ </Database>
+ <WakeOnLAN>
+ <Enabled>0</Enabled>
+ <SQLReconnectWaitTime>0</SQLReconnectWaitTime>
+ <SQLConnectRetry>5</SQLConnectRetry>
+ <Command>echo 'WOLsqlServerCommand not set'</Command>
+ </WakeOnLAN>
<UPnP>
<UDN>
<MediaRenderer>%s</MediaRenderer>
</UDN>
- <MythFrontend>
- <DefaultBackend>
- <DBHostName>%s</DBHostName>
- <DBUserName>mythtv</DBUserName>
- <DBPassword>mythtv</DBPassword>
- <DBName>mythconverg</DBName>
- <DBPort>0</DBPort>
- </DefaultBackend>
- </MythFrontend>
</UPnP>
</Configuration>
'''
- configxml= configxml_t %(uuid,dbhost)
+
+
+
+ configxml= configxml_t %(dbhost,uuid)
return configxml
def gen_uuid():