From b5865c7969af2c8096c1a9ed62a10a0048bad95e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Sep 2011 11:57:39 +0000 Subject: [PATCH] /etc/init.d: When installing SCST 3.0, disable and remove the now obsolete iscsi-scst and qla2x00t init scripts. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3843 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scstadmin/Makefile b/scstadmin/Makefile index 672773258..798278e9f 100644 --- a/scstadmin/Makefile +++ b/scstadmin/Makefile @@ -55,6 +55,12 @@ install: if [ ! -e $(DESTDIR)$(DEFAULTDIR)/scst ]; then \ install -m 755 default/scst $(DESTDIR)$(DEFAULTDIR); \ fi + @if [ "$(REMOVE_INITD_CMD)" != "none" ]; then \ + $(REMOVE_INITD_CMD) iscsi-scst >/dev/null 2>&1; \ + rm -f $(INITDIR)/iscsi-scst; \ + $(REMOVE_INITD_CMD) qla2x00t >/dev/null 2>&1; \ + rm -f $(INITDIR)/qla2x00t; \ + fi @if [ "$(INSTALL_INITD_CMD)" != "none" ]; then \ echo; \ echo 'If you want SCST to start automatically at boot time, run' \