aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-04-18 14:26:11 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-04-18 14:26:11 +0000
commit1c58bcd122d6b2764f3270bd41196e4de6504303 (patch)
treeccaf9b78638b64012802cc1e6d7415e1ba5e0173
parentacc84a6ae850c923e9aef4af6983b31573cb0411 (diff)
- Improve rc script: if samba_enable is not set, use fine grained control
using smbd_enable and nmbd_enable and silence warning about samba_enable not being set. PR: ports/65598 Submitted by: Timur I. Bakeyev <timur@com.bat.ru> (maintainer) Requested by: obrien
Notes
Notes: svn path=/head/; revision=107422
-rw-r--r--net/samba-devel/files/samba.sh.sample2
-rw-r--r--net/samba3/files/samba.sh.sample2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/samba-devel/files/samba.sh.sample b/net/samba-devel/files/samba.sh.sample
index 0221db03567c..016467524cde 100644
--- a/net/samba-devel/files/samba.sh.sample
+++ b/net/samba-devel/files/samba.sh.sample
@@ -38,7 +38,7 @@ if [ ! -r ${samba_config} ]; then
esac
fi
-if checkyesno samba_enable; then
+if test -n ${samba_enable:-} && checkyesno samba_enable; then
nmbd_enable=${nmbd_enable:-"YES"}
smbd_enable=${smbd_enable:-"YES"}
%%WINBIND%% winbindd_enable=${winbindd_enable:-"YES"}
diff --git a/net/samba3/files/samba.sh.sample b/net/samba3/files/samba.sh.sample
index 0221db03567c..016467524cde 100644
--- a/net/samba3/files/samba.sh.sample
+++ b/net/samba3/files/samba.sh.sample
@@ -38,7 +38,7 @@ if [ ! -r ${samba_config} ]; then
esac
fi
-if checkyesno samba_enable; then
+if test -n ${samba_enable:-} && checkyesno samba_enable; then
nmbd_enable=${nmbd_enable:-"YES"}
smbd_enable=${smbd_enable:-"YES"}
%%WINBIND%% winbindd_enable=${winbindd_enable:-"YES"}