File 0105-lio-utils-Remove-target-stop-start-from-debian-prerm.patch of Package lio-utils

From 853a85f4c4ef79d997c014b3f2b5af15ced4766e Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <nab@risingtidesystems.com>
Date: Sun, 18 Sep 2011 23:02:56 -0700
Subject: lio-utils: Remove target stop/start from debian prerm/postinst

Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
---
 debian/postinst | 16 ++++++++--------
 debian/prerm    | 14 +++++++-------
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index 9ea01e3..d4db93e 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -41,11 +41,11 @@ if [ ! -h /usr/sbin/lio_dump ]; then
 	ln -s $INSTALL_PATH/lio_dump.py /usr/sbin/lio_dump;
 fi
 
-if [ -x "/etc/init.d/target" ]; then
-        update-rc.d target defaults >/dev/null
-        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-                invoke-rc.d target start || exit $?
-        else
-                /etc/init.d/target start || exit $?
-        fi
-fi
+#if [ -x "/etc/init.d/target" ]; then
+#        update-rc.d target defaults >/dev/null
+#        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+#                invoke-rc.d target start || exit $?
+#        else
+#                /etc/init.d/target start || exit $?
+#        fi
+#fi
diff --git a/debian/prerm b/debian/prerm
index bd0f6f2..73f8fbd 100755
--- a/debian/prerm
+++ b/debian/prerm
@@ -1,12 +1,12 @@
 #!/bin/sh
 
-if [ -x "/etc/init.d/target" ]; then
-        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-                invoke-rc.d target stop || exit $?
-        else
-                /etc/init.d/target stop || exit $?
-        fi
-fi
+#if [ -x "/etc/init.d/target" ]; then
+#        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+#                invoke-rc.d target stop || exit $?
+#        else
+#                /etc/init.d/target stop || exit $?
+#        fi
+#fi
 
 update-rc.d -f target remove
 
-- 
1.8.1.4