Re: Rescan SCSI Bus without /proc/scsi?

From: Alistair John Strachan
Date: Tue Jan 31 2006 - 10:33:46 EST


On Tuesday 31 January 2006 13:51, Kurt Garloff wrote:
> Hi,
>
> On Mon, Oct 31, 2005 at 12:13:54PM +0100, Andreas Schwab wrote:
> > Nico Schottelius <nico-kernel@xxxxxxxxxxxxxxx> writes:
> > > This breaks the popular rescan-scsi-bus.sh from Kurt Garloff.
> > > Is there a possibility to do that through /sys somehow or do I have
> > > to reanable /proc/scsi?
> >
> > Your version of rescan-scsi-bus.sh is quite old. Current versions of
> > rescan-scsi-bus.sh already use /sys when available.
>
> Attached for reference.

>From the attachment;

if test ! -d /proc/scsi/; then
echo "Error: SCSI subsystem not active"
exit 1
fi

:-)

--
Cheers,
Alistair.

'No sense being pessimistic, it probably wouldn't work anyway.'
Third year Computer Science undergraduate.
1F2 55 South Clerk Street, Edinburgh, UK.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/