summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-01-25 15:12:18 +0000
committerSimo Sorce <idra@samba.org>2006-01-25 15:12:18 +0000
commit181df5032fac2e8e85618ea06dcc13f40d0ef927 (patch)
tree77314418e9dcf43a7670e1f98bf4e4009fd661b0 /packaging
parentd6e0be5be6c50d829a55e1fbbf4584b3907b7211 (diff)
downloadsamba-181df5032fac2e8e85618ea06dcc13f40d0ef927.tar.gz
samba-181df5032fac2e8e85618ea06dcc13f40d0ef927.tar.xz
samba-181df5032fac2e8e85618ea06dcc13f40d0ef927.zip
r13132: Old fix from Lars
tx
Diffstat (limited to 'packaging')
-rw-r--r--packaging/Debian/debian-unstable/samba-common.dhcp4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/Debian/debian-unstable/samba-common.dhcp b/packaging/Debian/debian-unstable/samba-common.dhcp
index 3b5a05ff573..38743a4568a 100644
--- a/packaging/Debian/debian-unstable/samba-common.dhcp
+++ b/packaging/Debian/debian-unstable/samba-common.dhcp
@@ -1,6 +1,7 @@
#!/bin/sh
SAMBA_DHCP_CONF=/etc/samba/dhcp.conf
+SAMBA_DHCP_CONF_INFO_FILE=""
netbios_setup() {
# No need to continue if we're called with an unsupported option
@@ -15,6 +16,7 @@ netbios_setup() {
# Nor should we continue if no settings have changed
if [ "$new_netbios_name_servers" = "$old_netbios_name_servers" ] \
&& [ "$new_netbios_scope" = "$old_netbios_scope" ]
+ && [ -f $SAMBA_DHCP_CONF ]
then
return
fi
@@ -33,6 +35,8 @@ netbios_setup() {
done
echo -n > $SAMBA_DHCP_CONF
+ test -n "$SAMBA_DHCP_CONF_INFO_FILE" -a -f "$SAMBA_DHCP_CONF_INFO_FILE" && \
+ cat "$SAMBA_DHCP_CONF_INFO_FILE" >> $SAMBA_DHCP_CONF
# If we're updating on failure/expire, AND there are no WINS
# servers for other interfaces, leave the file empty.