Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. while IFS=' :' read -r _ _ slot _ status; do if [[ $status != "Online, Spun Up" ]]; then slot=$slot; list+=("$ENCLOSURE:$slot"); done <<< "$drives"
  2. IFS=,;printf '%s\n' "${list[*]}"
  3.  
  4.  
  5. $MegaCli -LDRecon -Start -r"$raidlevel" -Add -PhysDrv[$ENCLOSURE:$list[*]] -l0 -a0 ; fi; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement