#!/bin/bash
#
# Execute raidmgr with the startup option. With this option raidmgr checks
# if RAID should be running on the system and if its not it disables it.
# In addition if RAID is permitted to run it raises any alarms in case of
# failure, sets the HDD and RAID LEDs to proper value and changes the
# primary drive parameter in case of HD failure.

LOGFILE=/var/log/nn_startup
param="startup"

echo `date` raidmgr: setting up RAID - Alarms, LEDs and RAID Monitoring >> $LOGFILE
/nn/sbin/raidmgr $param

exit $?
