diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-06-12 02:55:26 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-06-12 14:15:08 +0200 |
commit | ba4a047b360c14587430d9bca6c7bf3a88445d6a (patch) | |
tree | 143d4c24232c41b93598331ec708e54b32e4948a /packaging/Debian/debian-unstable/samba-common.dhcp | |
parent | c418af2456d6c1ac18a8e31fa5ad808b572d1378 (diff) | |
download | samba-ba4a047b360c14587430d9bca6c7bf3a88445d6a.tar.gz samba-ba4a047b360c14587430d9bca6c7bf3a88445d6a.tar.bz2 samba-ba4a047b360c14587430d9bca6c7bf3a88445d6a.zip |
packaging/Debian: Remove outdated Debian package sources and instead refer to
Debian.org and SerNet packages.
Diffstat (limited to 'packaging/Debian/debian-unstable/samba-common.dhcp')
-rw-r--r-- | packaging/Debian/debian-unstable/samba-common.dhcp | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/packaging/Debian/debian-unstable/samba-common.dhcp b/packaging/Debian/debian-unstable/samba-common.dhcp deleted file mode 100644 index c8c4b9e14a..0000000000 --- a/packaging/Debian/debian-unstable/samba-common.dhcp +++ /dev/null @@ -1,65 +0,0 @@ -#!/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 - - if [ "$reason" != BOUND ] && [ "$reason" != RENEW ] \ - && [ "$reason" != REBIND ] && [ "$reason" != REBOOT ] \ - && [ "$reason" != EXPIRE ] && [ "$reason" != FAIL ] - then - return - fi - - # 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 - - # reparse our own file - local other_servers=`sed -n -e"s/[[:space:]]$interface:[^[:space:]]*//g; \ - s/^[[:space:]]*wins server[[:space:]]*=[[:space:]]*//pi" \ - $SAMBA_DHCP_CONF` - - umask 022 - - local serverlist="$other_servers" - for server in $new_netbios_name_servers - do - serverlist="$serverlist $interface:$server" - 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. - if [ -z "$other_servers" ] - then - if [ "$reason" = FAIL ] || [ "$reason" = EXPIRE ] - then - return - fi - fi - - if [ -n "$serverlist" ] - then - echo " wins server =$serverlist" >> $SAMBA_DHCP_CONF - fi - if [ -n "$new_netbios_scope" ] - then - echo " netbios scope = $new_netbios_scope" >> $SAMBA_DHCP_CONF - fi -} - -# Only call netbios_setup if we're not sourced. -case "$0" in - *bin/sh|*bin/bash) : ;; - *) netbios_setup ;; -esac |