1 |
--- e-smith-samba-2.0.0/root/etc/e-smith/templates/etc/smb.conf/11remoteAnnounce.fixwarnings 2009-06-02 07:46:56.000000000 -0600 |
2 |
+++ e-smith-samba-2.0.0/root/etc/e-smith/templates/etc/smb.conf/11remoteAnnounce 2009-06-02 07:48:58.000000000 -0600 |
3 |
@@ -1,7 +1,7 @@ |
4 |
{ |
5 |
# Cause this host to announce itself to local subnets here |
6 |
# ; remote announce = 192.168.1.255 192.168.2.44 |
7 |
- return "" if $SMB_WINSServer eq $LocalIP; |
8 |
+ return "" unless defined $SMB_WINSServer and $SMB_WINSServer ne $LocalIP; |
9 |
|
10 |
return "remote announce = $SMB_WINSServer"; |
11 |
} |
12 |
--- e-smith-samba-2.0.0/root/etc/e-smith/templates/etc/smb.conf/11remoteBrowseSync.fixwarnings 2009-06-02 07:46:56.000000000 -0600 |
13 |
+++ e-smith-samba-2.0.0/root/etc/e-smith/templates/etc/smb.conf/11remoteBrowseSync 2009-06-02 07:49:13.000000000 -0600 |
14 |
@@ -3,7 +3,7 @@ |
15 |
# request announcement to, or browse list sync from: |
16 |
# a specific host or from / to a whole subnet (see below) |
17 |
# ; remote browse sync = 192.168.3.25 192.168.5.255 |
18 |
- return "" if $SMB_WINSServer eq $LocalIP; |
19 |
+ return "" unless defined $SMB_WINSServer and $SMB_WINSServer ne $LocalIP; |
20 |
|
21 |
return "remote browse sync = $SMB_WINSServer"; |
22 |
} |
23 |
--- e-smith-samba-2.0.0/root/etc/e-smith/templates/etc/smb.conf/11winsServer.fixwarnings 2009-06-02 07:46:56.000000000 -0600 |
24 |
+++ e-smith-samba-2.0.0/root/etc/e-smith/templates/etc/smb.conf/11winsServer 2009-06-02 07:51:05.000000000 -0600 |
25 |
@@ -6,8 +6,8 @@ |
26 |
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server |
27 |
# WINS Server - Tells the NMBD components of Samba to be a WINS Client |
28 |
#------------------------------------------------------------------ |
29 |
- return "wins support = yes" if $SMB_WINSServer eq $LocalIP; |
30 |
+ return "wins support = yes" if defined $SMB_WINSServer and $SMB_WINSServer eq $LocalIP; |
31 |
|
32 |
$OUT .= "wins support = no\n"; |
33 |
- $OUT .= "wins server = $SMB_WINSServer"; |
34 |
+ $OUT .= "wins server = $SMB_WINSServer" if defined $SMB_WINSServer; |
35 |
} |