#!/bin/sh
# mrsetgood - MegaRAID set good utility
# this should really be part of fix-disks but isn't
# this calls fix-disks and outputs menu stuff

# usage:
# mrsetgood         #normal: see all
# mrsetgood -menu   #with INFO MSG;;OK;;2 reply

M=$1
P=/usr/share/venusd/EXEC

doSetGood() {
$P/fix-disks
$P/get-disks V3
}

if [ "$M" = "-menu" ]; then
	doSetGood >/dev/null
	echo "INFO"
	echo "MSG;;Ok;;2"
else
	# normal output
	doSetGood
fi