From 835f018ef2901439e738a83ac5c233c767ff20ca Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Fri, 3 Feb 2006 15:39:07 +0000 Subject: r13306: Do not call netbios_setup() if this file is sourced by sh or bash. --- packaging/Debian/debian-unstable/samba-common.dhcp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit