#!/bin/bash
#
# Usage:
#   rcsModemControl
#
# Where:
#
# This script sets up the library path and bin path for rcsModemControl
#
#  07/27/2007  S. Lyons  ODT L1024 D67L HMC REPORED E43D040A-0 after using 'Customize Auto Answering' Icon.
#ENDUSAGE
#****************************************************************************

if [ ! -d "$HWMCAHOME" ]; then
    if [ -d "/console" ]; then
        HWMCAHOME="/console";
    else
        HWMCAHOME="/opt/ccfw";
    fi
fi

export PATH="$HWMCAHOME/../output/bin:$HWMCAHOME/bin:$HWMCAHOME/bin/framework:$PATH"
export LD_LIBRARY_PATH="$HWMCAHOME/../output/lib:$HWMCAHOME/lib:$HWMCAHOME/lib/framework:$LD_LIBRARY_PATH"
# Set environment variable so that the program rcsModemControl does not participate in PCE.
# PCE does thread accounting stuff and is used by the native bridge.
# This variable is read by the native bridge. (actzNativeBridge.c)
export BRIDGE_PCE_INFO="none"

exec rcsModemControl $*
