aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2014-01-23 23:25:22 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2014-01-23 23:25:22 +0000
commit4ac0d027631c7d48114d36257fde211c32d20137 (patch)
tree49ce5cb4704aaa95405ee21316b0c58d0f7b43bc /scripts
parent2bb9e742c191f73cf50ad5e113fef7bf88f46f61 (diff)
downloadsg3_utils-4ac0d027631c7d48114d36257fde211c32d20137.tar.gz
scripts/rescan-scsi-bus.sh: check for issue_lip; add suse build infrastructure
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@547 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rescan-scsi-bus.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/rescan-scsi-bus.sh b/scripts/rescan-scsi-bus.sh
index 320d7b5a..8df88c38 100755
--- a/scripts/rescan-scsi-bus.sh
+++ b/scripts/rescan-scsi-bus.sh
@@ -2,7 +2,7 @@
# Skript to rescan SCSI bus, using the
# scsi add-single-device mechanism
# (c) 1998--2010 Kurt Garloff <kurt@garloff.de>, GNU GPL v2 or v3
-# (c) 2006--2013 Hannes Reinecke, GNU GPL v2 or later
+# (c) 2006--2014 Hannes Reinecke, GNU GPL v2 or later
# $Id: rescan-scsi-bus.sh,v 1.57 2012/03/31 14:08:48 garloff Exp $
SCAN_WILD_CARD=4294967295
@@ -1110,8 +1110,9 @@ else
echo -n "Scanning host $host "
if test -e /sys/class/fc_host/host$host ; then
# It's pointless to do a target scan on FC
- if test -n "$lipreset" ; then
- echo 1 > /sys/class/fc_host/host$host/issue_lip 2> /dev/null;
+ issue_lip=/sys/class/fc_host/host$host/issue_lip
+ if test -e $issue_lip -a -n "$lipreset" ; then
+ echo 1 > $issue_lip 2> /dev/null;
udevadm_settle
fi
channelsearch=