do
FILE="/sys/class/fc_host/$s/issue_lip"
if [ -f $FILE ];
then
echo $s "lip"
echo "1" > /sys/class/fc_host/$s/issue_lip
#else
#echo "File $FILE no existe"
fi
FILE="/sys/class/scsi_host/$s/scan"
if [ -f $FILE ];
then
echo $s "scan"
echo "- - -" > /sys/class/scsi_host/$s/scan
#else
#echo "File $FILE does not exist."
fi
sleep 3
done
No hay comentarios:
Publicar un comentario