diff options
author | Lars Müller <lmuelle@samba.org> | 2006-02-03 15:39:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:06:22 -0500 |
commit | ca2cd33a69bd16f6c9525863b6f8e7a6ebf45b66 (patch) | |
tree | 00a7f55122edc90566e5384a54909b8f5ca46feb /packaging/Debian/debian-unstable | |
parent | 66d5a32d9cae13ddceb9b4710722d86cdc343043 (diff) | |
download | samba-ca2cd33a69bd16f6c9525863b6f8e7a6ebf45b66.tar.gz samba-ca2cd33a69bd16f6c9525863b6f8e7a6ebf45b66.tar.bz2 samba-ca2cd33a69bd16f6c9525863b6f8e7a6ebf45b66.zip |
r13306: Do not call netbios_setup() if this file is sourced by sh or bash.
(This used to be commit 72c6432ae8b8bf2330fc1a8019d332ab95b57e4e)
Diffstat (limited to 'packaging/Debian/debian-unstable')
-rw-r--r-- | packaging/Debian/debian-unstable/samba-common.dhcp | 6 |
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 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 |