From 2b52309f78a508f9385cb847ba88179558f9a038 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 26 Nov 2013 22:03:43 -0600
Subject: LinHES-config:  systemconfig.py  update config.xml for the .27 format

---
 abs/core/LinHES-config/systemconfig.py | 51 ++++++++++++++++++++++++++--------
 1 file 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():
-- 
cgit v0.12

