Author: jerry
Date: 2006-01-27 13:27:13 +0000 (Fri, 27 Jan 2006)
New Revision: 13185

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13185

Log:
and one more packaging fix
Modified:
   branches/SAMBA_3_0_RELEASE/packaging/Debian/debian-unstable/samba-common.dhcp


Changeset:
Modified: 
branches/SAMBA_3_0_RELEASE/packaging/Debian/debian-unstable/samba-common.dhcp
===================================================================
--- 
branches/SAMBA_3_0_RELEASE/packaging/Debian/debian-unstable/samba-common.dhcp   
    2006-01-27 13:25:04 UTC (rev 13184)
+++ 
branches/SAMBA_3_0_RELEASE/packaging/Debian/debian-unstable/samba-common.dhcp   
    2006-01-27 13:27:13 UTC (rev 13185)
@@ -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 @@
        # 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 @@
        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.

Reply via email to