#!/bin/bash INT=0 read -p "Please enter news host*:" SHURU while [ $INT -le $SHURU ] do echo "- - -" >> /sys/class/scsi_host/host$INT/scan let INT++ done if [ $? -eq 0 ] then echo "news host succer!" else echo "NO,Please retry" fi
host一般大于等于30足以。
原文地址:http://heyangguang.blog.51cto.com/10930823/1894395