#!/bin/sh

## get the os name
os_name=`uname`
if [ "$os_name" = "Linux" ]
then
  nsdicmd=l
elif [ "$os_name" = "SunOS" ]
then
## check the release number of the OS.
os_release=`uname -r`
if [ "$os_release" = "5.9" ]
then
  nsdicmd=9
elif [ "$os_release" = "5.8" ]
then
  nsdicmd=8
elif [ "$os_release" = "5.7" ]
then
  nsdicmd=7
elif [ "$os_release" = "5.6" ]
then
  nsdicmd=26
else
  echo "The program does not support SusOS $os_release."
  exit 1
fi
else
  echo "The program does not support $os_name."
  exit 1
fi

LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
$0$nsdicmd $*
