#!/bin/sh
#############################################################################
# Copyright (C)2004-2005, Sun Microsystems Inc. All rights reserved.
# Use is subject to license terms.
#
# Name: get_interface
# Description: Script to return the paths to the interface with the name passed in.

# pragma ident	
##############################################################################

################################################################################
#  Function of the get_interface
#  1.  Return the path for the interface name passed in.
#  2.  Error out if the interface name doesnot correspond to the interface list maintained.
#################################################################################

##### This file should be kept uptodate as more interfaces are made available via the framework ####
#
# control logging method
#
log=echo
#log="logger -pdaemon.err"
    

case "$1" in
'CHECK_CCR')
    echo "/usr/lib/cc-cfw/framework/lib/check_ccr"
    ;;
'CREATE_CRONTAB_ENTRY')
    echo "/usr/lib/cc-cfw/framework/lib/create_crontab_entry"
    ;;
'CREATE_INITD_ENTRY')
    echo "/usr/lib/cc-cfw/framework/lib/create_initd_entry"
    ;;
'DESTROY_CRONTAB_ENTRY')
    echo "/usr/lib/cc-cfw/framework/lib/destroy_crontab_entry"
    ;;
'DESTROY_INITD_ENTRY')
    echo "/usr/lib/cc-cfw/framework/lib/destroy_initd_entry"
    ;;
'REMOVE_SERVICE_ENTRIES')
    echo "/usr/lib/cc-cfw/framework/lib/remove_service_entries"
    ;;
'SET_COMPONENT_STATUS')
    echo "/usr/lib/cc-cfw/framework/lib/set_component_status"
    ;;
'SET_SERVICE_STATUS')
    echo "/usr/lib/cc-cfw/framework/lib/set_service_status"
    ;;
'GET_COMPONENT_STATUS')
    echo "/usr/lib/cc-cfw/framework/lib/get_component_status"
    ;;
'GET_SERVICE_STATUS')
    echo "/usr/lib/cc-cfw/framework/lib/get_service_status"
    ;;
'GET_STATUS_ENUM')
    echo "/usr/lib/cc-cfw/framework/lib/status_enum"
    ;;
'WATCHDOG')
    echo "/usr/lib/cc-cfw/framework/lib/watchdog"
    ;;
 *)
    $log ERROR : Interface $1 not provided by the framework.
    exit 1
esac

