summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorLars Müller <lmuelle@samba.org>2006-02-03 15:39:07 +0000
committerLars Müller <lmuelle@samba.org>2006-02-03 15:39:07 +0000
commit835f018ef2901439e738a83ac5c233c767ff20ca (patch)
tree83a5cf45b8247f1c52cbcf35e3908219a11a41bf /packaging
parentff072c8dce4788a83fe206f5c7caab2a20a62eb6 (diff)
downloadsamba-835f018ef2901439e738a83ac5c233c767ff20ca.tar.gz
samba-835f018ef2901439e738a83ac5c233c767ff20ca.tar.xz
samba-835f018ef2901439e738a83ac5c233c767ff20ca.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