#! /bin/bash


# default libexecdir used to bootstrap scripts
libexecdir=${GLOBUS_LOCATION}/libexec

## load Globus script initializer
#. ${libexecdir}/globus-script-initializer

# these definitions provide the platform-specific variants of
# each general provider
grid_info_platform=grid-hostinfo-platform-uname
grid_info_os=grid-hostinfo-os-uname
grid_info_cpu=grid-hostinfo-cpu-linux
grid_info_mem=grid-hostinfo-mem-linux
grid_info_fs=grid-hostinfo-fs-posix
grid_info_net=grid-hostinfo-net-linux

# get site-specific overrides (if any)
#. ${sysconfdir}/grid-hostinfo.conf


# host and platform-specific features
EXPR=${GLOBUS_SH_EXPR-expr}

if [ "$(( 2 + 2 ))" = 4 ] > /dev/null 2>&1
then
  EXPR=grid_info_expr_func
fi

GRID_INFO_SH_DF_POSIX_KB="${GLOBUS_SH_DF-df} -l -k"

LINUX_CPUINFO=/proc/cpuinfo
LINUX_MEMINFO=/proc/meminfo
LINUX_IFCONFIG=/sbin/ifconfig
