#!/usr/bin/sh

#
# Usage:  writeNetConnect can be called with 
#           -v to get version of writeNetConnect
#        or -r 1.1 to give the version of NetConnect
#
# FILE=`grep shuttle.ifile /opt/ras/rasagent.conf`


FILE1="/var/opt/SUNWstade/DATA/SHUTTLE1";
FILE3="/var/opt/SUNWstade/DATA/SHUTTLE3";

D="/usr/bin"

if test "x$1" = "x-v"
then
  if test -f "/opt/SUNWstade/System/config"
  then
    /usr/bin/cat /opt/SUNWstade/System/config
  else 
    echo "UNKNOWN"
  fi
  exit;
fi

NCVERSION=$2 

if test -s $FILE1.save
then
   echo "#priority=1"
   cat $FILE1.save
   rm $FILE1.save  

elif test -s $FILE1
then
   mv $FILE1 $FILE1.save
   echo "#priority=1"
   cat $FILE1.save
   rm $FILE1.save  

elif test -s $FILE3.save
then
   echo "#priority=3"
   cat $FILE3.save
   rm $FILE3.save  

elif test -s $FILE3
then
   mv $FILE3 $FILE3.save
   echo "#priority=3"
   cat $FILE3.save
   rm $FILE3.save  
fi

