From fa0161e423b3fdd30927cd0aad44a227ca17cc60 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sun, 31 Jan 2010 15:20:01 -0600
Subject: linhes-config: mv_advanced  read/write bit was flipped for smb. This
 changes switches it to the correct order.

---
 abs/core-testing/LinHES-config/PKGBUILD       | 2 +-
 abs/core-testing/LinHES-config/mv_advanced.py | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD
index 0d5d945..84bcbda 100644
--- a/abs/core-testing/LinHES-config/PKGBUILD
+++ b/abs/core-testing/LinHES-config/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=LinHES-config
 pkgver=2.1
-pkgrel=12
+pkgrel=17
 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config )
 pkgdesc="Install and configure your system"
 depends=('bc' 'libstatgrab'  'mysql-python' 'expect' 'curl' 'dnsutils' 'parted' 
diff --git a/abs/core-testing/LinHES-config/mv_advanced.py b/abs/core-testing/LinHES-config/mv_advanced.py
index 4790fcf..d07b7cb 100755
--- a/abs/core-testing/LinHES-config/mv_advanced.py
+++ b/abs/core-testing/LinHES-config/mv_advanced.py
@@ -224,12 +224,12 @@ def setup_samba(systemconfig,data_config):
         else:
             Samba_media = systemconfig["Samba_media"]
             Samba_home = systemconfig["Samba_home"]
-            if systemconfig["Samba_mediareadonly"] == "1":
+            if systemconfig["Samba_mediareadonly"] == "0":
                 smreadonly = "yes"
             else:
                 smreadonly = "no"
 
-            if systemconfig["Samba_homereadonly"] == "1":
+            if systemconfig["Samba_homereadonly"] == "0":
                 shreadonly = "yes"
             else:
                 shreadonly = "no"
@@ -310,8 +310,11 @@ create mask = 0755 ''' %(data_config.MYTHHOME,shreadonly)
             logging.debug("     %s",homelines)
 
 
-        mv_common.add_service("nmbd")
+	mv_common.add_service("nmbd")
         mv_common.add_service("smbd")
+	mv_common.restart_service("nmbd")
+	mv_common.restart_service("smbd")
+
     else:
         logging.info("  Removing windows file sharing")
         mv_common.remove_service("smbd")
-- 
cgit v0.12