From 72c6432ae8b8bf2330fc1a8019d332ab95b57e4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20M=C3=BCller?= Date: Fri, 3 Feb 2006 15:39:07 +0000 Subject: [PATCH] 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 -- 2.11.4.GIT