All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] use system provides udev rule and initialization script
@ 2013-05-29  9:26 Dan Horák
       [not found] ` <1369819616-8820-1-git-send-email-dan-mBPqX7VnFd4@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Horák @ 2013-05-29  9:26 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

---
 modules.d/95zfcp/56-zfcp.rules |  1 -
 modules.d/95zfcp/zfcpconf.sh   | 57 ------------------------------------------
 2 files changed, 58 deletions(-)
 delete mode 100644 modules.d/95zfcp/56-zfcp.rules
 delete mode 100755 modules.d/95zfcp/zfcpconf.sh

diff --git a/modules.d/95zfcp/56-zfcp.rules b/modules.d/95zfcp/56-zfcp.rules
deleted file mode 100644
index 5558f8b..0000000
--- a/modules.d/95zfcp/56-zfcp.rules
+++ /dev/null
@@ -1 +0,0 @@
-KERNEL=="zfcp", RUN+="/sbin/zfcpconf.sh"
diff --git a/modules.d/95zfcp/zfcpconf.sh b/modules.d/95zfcp/zfcpconf.sh
deleted file mode 100755
index 7127eae..0000000
--- a/modules.d/95zfcp/zfcpconf.sh
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
-# ex: ts=8 sw=4 sts=4 et filetype=sh
-
-# config file syntax:
-# deviceno   WWPN   FCPLUN
-#
-# Example:
-# 0.0.4000 0x5005076300C213e9 0x5022000000000000
-# 0.0.4001 0x5005076300c213e9 0x5023000000000000
-#
-#
-# manual setup:
-# modprobe zfcp
-# echo 1    > /sys/bus/ccw/drivers/zfcp/0.0.4000/online
-# echo LUN  > /sys/bus/ccw/drivers/zfcp/0.0.4000/WWPN/unit_add
-#
-# Example:
-# modprobe zfcp
-# echo 1                  > /sys/bus/ccw/drivers/zfcp/0.0.4000/online
-# echo 0x5022000000000000 > /sys/bus/ccw/drivers/zfcp/0.0.4000/0x5005076300c213e9/unit_add
-
-CONFIG=/etc/zfcp.conf
-PATH=/usr/sbin:/usr/bin:/sbin:/bin
-
-if [ -f "$CONFIG" ]; then
-    if [ ! -d /sys/bus/ccw/drivers/zfcp ]; then
-        modprobe zfcp
-    fi
-    if [ ! -d /sys/bus/ccw/drivers/zfcp ]; then
-        return
-    fi
-    sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' < $CONFIG| while read line; do
-    case $line in
-        \#*) ;;
-        *)
-            [ -z "$line" ] && continue
-            set $line
-            if [ $# -eq 5 ]; then
-                DEVICE=$1
-                SCSIID=$2
-                WWPN=$3
-                SCSILUN=$4
-                FCPLUN=$5
-                echo "Warning: Deprecated values in /etc/zfcp.conf, ignoring SCSI ID $SCSIID and SCSI LUN $SCSILUN"
-            elif [ $# -eq 3 ]; then
-                DEVICE=${1##*0x}
-                WWPN=$2
-                FCPLUN=$3
-            fi
-            echo 1 > /sys/bus/ccw/drivers/zfcp/${DEVICE}/online
-            [ ! -d /sys/bus/ccw/drivers/zfcp/${DEVICE}/${WWPN}/${FCPLUN} ] \
-                && echo $FCPLUN > /sys/bus/ccw/drivers/zfcp/${DEVICE}/${WWPN}/unit_add
-            ;;
-    esac
-    done
-fi
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] use system provides udev rule and initialization script
       [not found] ` <1369819616-8820-1-git-send-email-dan-mBPqX7VnFd4@public.gmane.org>
@ 2013-05-30  6:29   ` Harald Hoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2013-05-30  6:29 UTC (permalink / raw)
  To: Dan Horák; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

On 05/29/2013 11:26 AM, Dan Horák wrote:
> ---
>  modules.d/95zfcp/56-zfcp.rules |  1 -
>  modules.d/95zfcp/zfcpconf.sh   | 57 ------------------------------------------
>  2 files changed, 58 deletions(-)
>  delete mode 100644 modules.d/95zfcp/56-zfcp.rules
>  delete mode 100755 modules.d/95zfcp/zfcpconf.sh
> 

Applied, thanks!


commit bc97e005fa097b9b8111ab0ec19bd4e246c13f9b

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-30  6:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29  9:26 [PATCH] use system provides udev rule and initialization script Dan Horák
     [not found] ` <1369819616-8820-1-git-send-email-dan-mBPqX7VnFd4@public.gmane.org>
2013-05-30  6:29   ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.