summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-11-27 04:03:43 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-11-27 04:03:43 (GMT)
commit2b52309f78a508f9385cb847ba88179558f9a038 (patch)
treec18ee7e4b872746e0326994246cfa9b3f14dcae4
parent4576070372969ee1635826af943e41bf3e92d096 (diff)
downloadlinhes_pkgbuild-2b52309f78a508f9385cb847ba88179558f9a038.zip
linhes_pkgbuild-2b52309f78a508f9385cb847ba88179558f9a038.tar.gz
linhes_pkgbuild-2b52309f78a508f9385cb847ba88179558f9a038.tar.bz2
LinHES-config: systemconfig.py update config.xml for the .27 format
-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():