#!/bin/sh

for i in /sys/class/scsi_host/host*/scan; do 
  echo "rescanning $i"
  echo "- - -" > $i 
done

