#!/bin/posix/sh

userQAddLineToExports()
{
  echo "a copy of $EXPORTS file has been saved in /tmp/`basename $EXPORTS`.$$"
  echo ""

  cat $1

  $ECHO "Append the above line to $EXPORTS? [y|n] (y): $NL"
  REPLY=`line`
  case $REPLY in
  y|Y|yes|YES|Yes|"")
      exit 0
      ;;
  *)
      echo "OK .. no NFS, $EXPORTS unchanged. "
      exit 1
      ;;
  esac
}

userQBOOTPData()
{
    #
    # get confirmation of info before updating bootptab
    #
    echo ""
    echo ""
    echo ""
    echo ""
    echo "You have entered the following network parameters for this X station:"
    echo ""
    echo "Name:				$XTNAME"
    echo "IP address:			$IPADDR"
    echo "LAN hardware address:		$${agrES}"
    echo "Subnet mask:			$SUBNETMASK"
    echo "Default gateway IP address:	$GATEWAY"
    echo ""
    echo ""
    echo ""
    echo ""

    while [ 0 ]
    do
	    $ECHO "Are these correct? [y|n|?] (y): $NL"
	    read REPLY 
	    case $REPLY in
	    y|Y|yes|YES|Yes|"")
		    exit 0
		    ;;
	    \?)
		    cat <<EOF

    If you answer yes to this question an entry containing these network
    parameters will be added to $BOOTPTAB.

    If you answer no to this question, you will be given a chance to
    re-enter the data.

EOF
		    continue
		    ;;
	    *)
		    exit 1
		    ;;
	    esac
    done
}
set -u
[ $INTERACTIVE = "false" ] && exit 0

shift
$*
