summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorLars Müller <lmuelle@samba.org>2006-02-03 15:39:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:22 -0500
commit72c6432ae8b8bf2330fc1a8019d332ab95b57e4e (patch)
tree83a5cf45b8247f1c52cbcf35e3908219a11a41bf /packaging
parente2fc8a196a06f76aa47fabc30872c701a2f7ccec (diff)
downloadsamba-72c6432ae8b8bf2330fc1a8019d332ab95b57e4e.tar.gz
samba-72c6432ae8b8bf2330fc1a8019d332ab95b57e4e.tar.xz
samba-72c6432ae8b8bf2330fc1a8019d332ab95b57e4e.zip
r13306: Do not call netbios_setup() if this file is sourced by sh or bash.
Diffstat (limited to 'packaging')
-rw-r--r--packaging/Debian/debian-unstable/samba-common.dhcp6
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/Debian/debian-unstable/samba-common.dhcp b/packaging/Debian/debian-unstable/samba-common.dhcp
index 8d1dcab6388..c8c4b9e14a8 100644
--- a/packaging/Debian/debian-unstable/samba-common.dhcp
+++ b/packaging/Debian/debian-unstable/samba-common.dhcp
@@ -58,4 +58,8 @@ netbios_setup() {
fi
}
-netbios_setup
+# Only call netbios_setup if we're not sourced.
+case "$0" in
+ *bin/sh|*bin/bash) : ;;
+ *) netbios_setup ;;
+esac