From ca2cd33a69bd16f6c9525863b6f8e7a6ebf45b66 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. (This used to be commit 72c6432ae8b8bf2330fc1a8019d332ab95b57e4e) --- packaging/Debian/debian-unstable/samba-common.dhcp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packaging/Debian') 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 -- cgit