[Pkg-ofed-commits] [srptools] 03/03: Remove srptools-boot.

Ana Beatriz Guerrero López ana at moszumanska.debian.org
Wed Sep 2 12:58:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

ana pushed a commit to branch master
in repository srptools.

commit 8225ae1e1513049f94e64b75205f46fceb8aefc3
Author: Ana Guerrero López <ana at ekaia.org>
Date:   Thu Jul 23 13:53:08 2015 +0200

    Remove srptools-boot.
---
 debian/changelog          |  1 +
 debian/rules              |  1 -
 debian/srptools-boot.init | 82 -----------------------------------------------
 debian/srptools.postinst  | 11 -------
 debian/srptools.postrm    |  9 ------
 5 files changed, 1 insertion(+), 103 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c7de837..9d1c889 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ srptools (1.0.3-1) unstable; urgency=medium
 
   * New upstream release.
   * Update to Standards-Version 3.9.6, no changes required.
+  * Remove srptools-boot.
 
  -- Ana Beatriz Guerrero Lopez <ana at debian.org>  Thu, 23 Jul 2015 12:35:56 +0200
 
diff --git a/debian/rules b/debian/rules
index 5ffdb03..bd60e9c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,6 @@
 override_dh_install:
 	dh_install
 	mkdir -p $(CURDIR)/debian/srptools/etc/init.d
-	cp $(CURDIR)/debian/srptools-boot.init $(CURDIR)/debian/srptools/etc/init.d/srptools-boot
 	rm $(CURDIR)/debian/srptools/usr/sbin/srp_daemon.sh
 	rm $(CURDIR)/debian/srptools/usr/sbin/run_srp_daemon
 	rm $(CURDIR)/debian/srptools/etc/init.d/srpd
diff --git a/debian/srptools-boot.init b/debian/srptools-boot.init
deleted file mode 100644
index 97658df..0000000
--- a/debian/srptools-boot.init
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-### BEGIN INIT INFO
-# Provides:          srptools-boot
-# Required-Start:    $remote_fs    
-# Required-Stop:     
-# Default-Start:     S
-# Default-Stop:      
-# Short-Description: Onetime Discovery of  SRP scsi targets.
-# Description:       Discovers SRP scsi over infiniband targets during boot.
-### END INIT INFO
-
-[ -x /usr/sbin/srp_daemon ] || exit 0
-
-IBDIR=/sys/class/infiniband
-
-PORTS=""
-RETRIES=""
-LOG=""
-
-[ -f /etc/default/srptools ] &&  . /etc/default/srptools
-
-start_daemon () {
-
-if [ "$PORTS" = "NONE" ] ; then
-echo "srptools disabled."
-exit 0
-fi
-
-echo -n "Waiting for fabric to settle..."
-sleep 1
-echo "done"
-
-if [ "$PORTS" = "ALL" ]  ; then
-    for HCA_ID in `/bin/ls -1 ${IBDIR}`
-      do
-      for PORT in `/bin/ls -1 ${IBDIR}/${HCA_ID}/ports/`
-        do
-	run_daemon
-      done
-    done
-fi
-
-
-for ADAPTER in $PORTS ; do
-    HCA_ID=`echo $ADAPTER | awk -F: '{print $1}'`
-    PORT=`echo $ADAPTER | awk -F:  '{print $2}'`
-    run_daemon
-done
-}
-
-
-run_daemon() {
-# SRP deamon wedges if we start it on a port which is not up
-
-	STATUS=`/usr/sbin/ibstat $HCA_ID $PORT | grep "State:"`
-
-	if [ "$STATUS" = "State: Active" ] ; then
-	    echo "Running  srp scan on $HCA_ID $PORT"
-# Run in 1 shot mode
-/usr/sbin/srp_daemon -o -e -c -n -i ${HCA_ID} -p ${PORT}
-	    RETVAL=$?
-	fi
-}
-
-stop_daemon () {
-    echo
-}
-
-
-case "$1" in 
-
-start)
-start_daemon
-;;
-stop)
-stop_daemon
-;;
-restart | reload | force-reload )
-stop_daemon
-start_daemon
-;;
-esac
diff --git a/debian/srptools.postinst b/debian/srptools.postinst
deleted file mode 100644
index e2ddfac..0000000
--- a/debian/srptools.postinst
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-set -e
-
-. /usr/share/debconf/confmodule
-
-if [ -x "/etc/init.d/srptools-boot" ]; then
-update-rc.d srptools-boot start 24 S . > /dev/null
-fi
-
-#DEBHELPER#
diff --git a/debian/srptools.postrm b/debian/srptools.postrm
deleted file mode 100644
index 3465540..0000000
--- a/debian/srptools.postrm
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = "purge" ] ; then
-        update-rc.d srptools-boot remove >/dev/null || exit $?
-fi
-
-#DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/srptools.git



More information about the Pkg-ofed-commits mailing list