SOURCES: rescan-scsi-bus.patch (NEW) - functions don't return stri...

glen glen at pld-linux.org
Wed Feb 13 19:18:33 CET 2008


Author: glen                         Date: Wed Feb 13 18:18:33 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- functions don't return strings in shell

---- Files affected:
SOURCES:
   rescan-scsi-bus.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rescan-scsi-bus.patch
diff -u /dev/null SOURCES/rescan-scsi-bus.patch:1.1
--- /dev/null	Wed Feb 13 19:18:33 2008
+++ SOURCES/rescan-scsi-bus.patch	Wed Feb 13 19:18:28 2008
@@ -0,0 +1,11 @@
+--- ./rescan-scsi-bus.sh	2007-11-13 15:53:06.000000000 +0200
++++ ./rescan-scsi-bus.sh	2008-02-13 20:13:21.190013256 +0200
+@@ -259,7 +259,7 @@
+ # Returns the list of existing LUNs
+ getluns ()
+ {
+-  if test ! -x /usr/bin/sg_luns; then return ""; fi
++  if test ! -x /usr/bin/sg_luns; then return; fi
+   sgdevice
+   if test -z "$SGDEV"; then return ""; fi
+   sg_luns -d /dev/$SGDEV | sed -n 's/.*lun=\(.*\)/\1/p'
================================================================


More information about the pld-cvs-commit mailing list