summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/mv_advanced.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-06-01 20:23:30 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-06-01 20:23:30 (GMT)
commitd9d928e1890f4c841889d2362b988466b85904cd (patch)
tree5420888b79b71400db0f89fac2786802fadefb3b /abs/core-testing/LinHES-config/mv_advanced.py
parentaf488dcf5c3d0354003910b3af841827980250a8 (diff)
downloadlinhes_pkgbuild-d9d928e1890f4c841889d2362b988466b85904cd.zip
linhes_pkgbuild-d9d928e1890f4c841889d2362b988466b85904cd.tar.gz
linhes_pkgbuild-d9d928e1890f4c841889d2362b988466b85904cd.tar.bz2
LinHES-config: cleanup
Diffstat (limited to 'abs/core-testing/LinHES-config/mv_advanced.py')
-rw-r--r--abs/core-testing/LinHES-config/mv_advanced.py31
1 files changed, 28 insertions, 3 deletions
diff --git a/abs/core-testing/LinHES-config/mv_advanced.py b/abs/core-testing/LinHES-config/mv_advanced.py
index 67692a4..f5a0f29 100644
--- a/abs/core-testing/LinHES-config/mv_advanced.py
+++ b/abs/core-testing/LinHES-config/mv_advanced.py
@@ -5,7 +5,32 @@ import mv_common
def setup_pacman(create_link):
if create_link:
logging.info(" Creating pacman link")
- logging.info(" LOOK")
+ #LOOK
+ #This is not implmented yet, below is the bash code for reference
+ #if [ ! x$1 = x ]
+ #then
+ #ln -s ${BASE}/data/var ${BASE}/data/srv/httpd/htdocs/repo
+ #echo "creating the link for the pacman repo mirror"
+ #fi
+
+ #for i in mv-core mv-core-testing mv-extra mv-extra-testing
+ #do
+ #echo "[$i]" > ${BASE}/etc/pacman.d/$i
+ ##add mirror if needed
+ #if [ x$PKG_MIRROR = x1 ]
+ #then
+ #echo " Server = http://$dbhost/repo/$i " >> ${BASE}/etc/pacman.d/$i
+ #fi
+ ##add user templates
+ #USERTEMPLATES="/data/home/mythtv/templates"
+ #if [ -f $USERTEMPLATES/sources/$i ]
+ #then
+ #echo "Adding user $i"
+ #cat $USERTEMPLATES/sources/$i >> ${BASE}/etc/pacman.d/$i
+ #fi
+ #cat $TEMPLATES/sources/$i >> ${BASE}/etc/pacman.d/$i
+ #echo "setting local mirror to $dbhost for $i "
+ #done
else:
logging.info(" Pacman link will not be created")
return
@@ -106,7 +131,7 @@ def setup_DNSmasq(RunDHCP,ip,gw,nameserver):
dnsconf = f.readlines()
f.close()
except:
- logging.info(" Couldn't open dnsmasq.conf")
+ logging.info(" Couldn't open dnsmasq.conf")
return
for line in dnsconf:
outline = line
@@ -349,4 +374,4 @@ def setup_advanced(systemconfig,data_config):
systemconfig["TEMPLATES"]+"/exports.template")
setup_dyndns(systemconfig["DDnsEnable"])
-
+ logging.info("__End of advanced configuration\n")