#!/bin/sh

. /opt/webservice/install/deployment.properties

deployment=`/opt/webservice/scripts/gethaipsetupentry.sh system.multiNodeSystem`

# default is: no RTM can be configured
rc=0

#RTM only available on DSCXLv2 or Eco Server
( system-is-dscxl2 || system-is-ecoserver ) || {
    echo "HW does not have a RTM board"
    exit 0
}

case $deployment in
    $DEP_DSCXLV2_SIMPLEX | $DEP_DSCXLV2_DUPLEX )
        echo "RTM board can be configured for this deployment and HW type."
        rc=1
        ;;
    *)
        echo "RTM board can NOT be configured for this deployment and HW type."
        rc=0
        ;;
esac

exit $rc
