From 7816e7ea3151f3260df06926ac15006df04b8bd1 Mon Sep 17 00:00:00 2001 From: ssorce Date: Thu, 19 Apr 2007 14:28:00 +0000 Subject: [PATCH] Cosmetic changes. --- winbind.init | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/winbind.init b/winbind.init index 6dd89f2..8251f9a 100644 --- a/winbind.init +++ b/winbind.init @@ -8,13 +8,7 @@ # Source function library. -if [ -f /etc/init.d/functions ] ; then - . /etc/init.d/functions -elif [ -f /etc/rc.d/init.d/functions ] ; then - . /etc/rc.d/init.d/functions -else - exit 0 -fi +. /etc/rc.d/init.d/functions # Avoid using root's TMPDIR unset TMPDIR @@ -22,16 +16,14 @@ unset TMPDIR # Source networking configuration. . /etc/sysconfig/network -if [ -f /etc/sysconfig/samba ]; then - . /etc/sysconfig/samba -fi - # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 # Check that smb.conf exists. [ -f /etc/samba/smb.conf ] || exit 0 +[ -f /etc/sysconfig/samba ] && . /etc/sysconfig/samba + RETVAL=0