r13306: Do not call netbios_setup() if this file is sourced by sh or bash.
authorLars Müller <lmuelle@samba.org>
Fri, 3 Feb 2006 15:39:07 +0000 (15:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:06:22 +0000 (11:06 -0500)
(This used to be commit 72c6432ae8b8bf2330fc1a8019d332ab95b57e4e)

packaging/Debian/debian-unstable/samba-common.dhcp

index 8d1dcab6388ae21a69b0cd85986ee9d149185785..c8c4b9e14a80956d787eec2eeea5e17feab287bf 100644 (file)
@@ -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