#!/bin/sh # Generic script to pick hda or sda # We're assuming if we're using HDA, then we're also using HDB for RAID # Same for SDA/SDB mymedia=`cat /proc/ide/hda/media` if [ "$mymedia" == "disk" ]; then hdone="/dev/hda" shortone="hda" hdtwo="/dev/hdb" shorttwo="hdb" echo ignoredisk --drives=[sda,sdb,sdc,sdd,sde,sdf,sdg,hdc,hdd,hde,hdf,hdg] else hdone="/dev/sda" shortone="sda" hdtwo="/dev/sdb" shorttwo="sdb" echo ignoredisk --drives=[sdc,sdd,sde,sdf,sdg,hda,hdb,hdc,hdd,hde,hdf,hdg] fi unid=$(echo `