summaryrefslogtreecommitdiff
path: root/packaging/Debian
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
commitca2cd33a69bd16f6c9525863b6f8e7a6ebf45b66 (patch)
tree00a7f55122edc90566e5384a54909b8f5ca46feb /packaging/Debian
parent66d5a32d9cae13ddceb9b4710722d86cdc343043 (diff)
downloadsamba-ca2cd33a69bd16f6c9525863b6f8e7a6ebf45b66.tar.gz
samba-ca2cd33a69bd16f6c9525863b6f8e7a6ebf45b66.tar.bz2
samba-ca2cd33a69bd16f6c9525863b6f8e7a6ebf45b66.zip
r13306: Do not call netbios_setup() if this file is sourced by sh or bash.
(This used to be commit 72c6432ae8b8bf2330fc1a8019d332ab95b57e4e)
Diffstat (limited to 'packaging/Debian')
-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 8d1dcab638..c8c4b9e14a 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