File 0116-lio-utils-Change-rc.target.suse-shutdown_lio_mod-to-.patch of Package lio-utils

From f4b1ebbb0fb9d845bdb24d8b4057e6dfebaa3039 Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <nab@risingtidesystems.com>
Date: Tue, 9 Oct 2012 15:14:45 -0700
Subject: lio-utils: Change rc.target.suse:shutdown_lio_mod to follow rc.target

Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
---
 scripts/rc.target.suse | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/scripts/rc.target.suse b/scripts/rc.target.suse
index 5aa5283..c812430 100644
--- a/scripts/rc.target.suse
+++ b/scripts/rc.target.suse
@@ -215,10 +215,12 @@ function shutdown_fabrics() {
 
 function shutdown_lio_mod () {
 	if ! lsmod | grep -q iscsi_target_mod ; then
-	    echo -n $"Unloading LIO-Target/ConfigFS fabric: "
-	    ${LIO_NODE} --unload
-	    rc_status -v
-        fi
+	    return 0
+	fi
+
+	echo -n $"Unloading LIO-Target/ConfigFS fabric: "
+	${LIO_NODE} --unload
+	rc_status -v
 }
 
 function unload_tcm_mod() {
-- 
1.8.1.4