#!/bin/bash
for channel in `ls /sys/class/scsi_host`
do
echo "rescanning $channel"
echo "- - -" > /sys/class/scsi_host/$channel/rescan
done
for channel in `ls /sys/class/scsi_host`
do
echo "rescanning $channel"
echo "- - -" > /sys/class/scsi_host/$channel/rescan
done
No comments:
Post a Comment