#!/bin/ksh
#
#
#/usr/bin/rm -f /tmp/accept
# NET=Y for NETConnect version

NET=

ans=v
while [ $ans = "v" ]
do
   /usr/bin/cat <<END

Sun Microsystems, Inc.
$DESC Binary Code License Agreement

READ THE TERMS OF THIS AGREEMENT CAREFULLY BEFORE OPENING THE SOFTWARE MEDIA PACKAGE. BY OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS OF THIS AGREEMENT. IF YOU ARE ACCESSING THE SOFTWARE ELECTRONICALLY INDICATE YOUR ACCEPTANCE OF THESE TERMS BY SELECTING THE "ACCEPT" BUTTON AT THE END OF THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THESE TERMS, SELECT THE "DECLINE" BUTTON AT THE END OF THIS AGREEMENT. USE OF THE ACCOMPANYING SOFTWARE AND ASSOCIATED SOFTWARE PACKAGES IS AUTHORIZED ONLY BY SUN AUTHORIZED SERVICE PROVIDERS TRAINED IN ITS USE AND ON THE PRODUCTS FOR WHICH IT WAS INTENDED.

1.License to Use. Sun grants to you a non-exclusive and non-transferable license for the internal use only of the accompanying software and documentation and any error corrections provided by Sun (collectively "Software") on a single Sun host computer.

2. Restrictions. Software is confidential and copyrighted. Title to Software and all associated intellectual property rights is retained by Sun and/or its licensors. You may not make copies of Software, other than a single copy of Software for archival purposes. Unless enforcement is prohibited by applicable law, you may not modify, decompile, disassemble, or otherwise reverse engineer Software. Software is not designed or licensed for use in on-line control of aircraft, air traffic, aircraft or navigation or aircraft communications; or in the design, construction, operation or maintenance of any nuclear facility. You warrant that you will not use the Software for these purposes. You may not publish or provide the results of any benchmark or comparison tests run on Software to any third party without the prior written consent of Sun. No right, title or interest in or to any trademark, service mark, logo, or trade name of Sun or its licensors is granted under this Agreement.

END
  if test -n "$NET"
  then
    ans=D
  else
    ans=`/usr/bin/ckkeywd -Q -d continue -p "Press Enter to continue" continue quit`
  fi

   case "$ans" in
   quit)
      exit 1
   esac
   /usr/bin/cat <<END

3.Limited Warranty. Sun warrants to you that for a period of ninety (90) days, the media on which Software is furnished (if any) will be free of defects in materials and workmanship under normal use. Except for the foregoing, Software is provided "AS IS". Your exclusive remedy and Sun's entire liability under this limited warranty will be to replace the Software media (if any). 

4.Disclaimer of Warranty. UNLESS SPECIFIED IN THIS AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

5.Limitation of Liability. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no event will Sun's liability to you, whether in contract, tort (including negligence), or otherwise, exceed the amount paid by you for Software under this Agreement.   The foregoing limitations will apply even if the above stated warranty fails of its essential purpose.

6.Termination. This Agreement is effective until terminated. You may terminate this Agreement at any time by destroying all copies of Software. Upon notice, Sun may terminate this Agreement at any time. This Agreement will terminate immediately without notice from Sun if you fail to comply with any provision of this Agreement. Upon termination, you must destroy all copies of Software.

7. Export Regulations. All Software and technical data delivered under this Agreement are subject to U.S. export control laws and may be subject to export or import regulations in other countries. You agree to comply strictly with all such laws and regulations and acknowledge that you have the responsibility to obtain such licenses to export, re-export, or import as may be required after delivery to you.

END
  if test -n "$NET"
  then
    ans=D
  else 
    ans=`/usr/bin/ckkeywd -Q -d continue -p "Press Enter to continue" continue quit`
  fi

   case "$ans" in
   quit)
      exit 1
   esac

   /usr/bin/cat <<END

8.U.S. Government Restricted Rights. Use, duplication, or disclosure by the U.S. Government is subject to restrictions set forth in this Agreement and as provided in DFARS 227.7202-1(a) and 227.7202-3(a) (1995), DFARS 252.227-7013(c)(1)(ii) (Oct 1988), FAR 12.212(a)(1995), FAR 52.227-19 (June 1987), or FAR 52.227-14 (ALT III) (June 1987), as applicable.

9. Governing Law. Any action related to this Agreement will be governed by California law and controlling U.S. federal law. No choice of law rules of any jurisdiction will apply.

10. Severability. If any provision of this Agreement is held to be unenforceable, this Agreement will remain in effect with the provision omitted, unless omission of the provision would frustrate the intent of the parties, in which case this Agreement will immediately terminate.

11.Integration. This Agreement is the entire agreement between you and Sun relating to its subject matter. It supersedes all prior or contemporaneous oral or written communications, proposals, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its subject matter during the term of this Agreement. No modification of this Agreement will be binding, unless in writing and signed by an authorized representative of each party.


END

# PRN

  if test -n "$NET"
  then
    ans=D
  else 
    ans=`/usr/bin/ckkeywd -Q -d continue -p "Press Enter to continue" continue quit`
  fi

   case "$ans" in
   quit)
      exit 1
   esac

   /usr/bin/cat <<END

Copyright  2003 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved.

Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in this product. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent applications in the U.S. and other countries.

This product is distributed under licenses restricting its use, copying distribution, and decompilation. No part of this product may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any.

Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.

Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and in other countries, exclusively licensed through X/Open Company, Ltd.

Sun,  Sun Microsystems,  the Sun logo and  Sun StorEdge are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.



The OPEN LOOK and Sun(TM) Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees.  Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun's licensees who implement OPEN LOOK GUIs and otherwise comply with Sun's written license agreements.

Federal Acquisitions: Commercial Software - Government Users Subject to Standard License Terms and Conditions.

Copyright  2003 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, Etats-Unis. Tous droits rservs.

Sun Microsystems, Inc. a les droits de proprit intellectuels relatants  la technologie incorpore dans ce produit. En particulier, et sans la limitation, ces droits de proprit intellectuels peuvent inclure un ou plus des brevets amricains numrs  http://www.sun.com/patents et un ou les brevets plus supplmentaires ou les applications de brevet en attente dans les Etats - Unis et les autres pays.

Ce produit ou document est protg par un copyright et distribu avec des licences qui en restreignent l'utilisation, la copie, la distribution, et la dcompilation. Aucune partie de ce produit ou document ne peut tre reproduite sous aucune forme, par quelque moyen que ce soit, sans l'autorisation pralable et crite de Sun et de ses bailleurs de licence, s'il y ena.

Le logiciel dtenu par des tiers, et qui comprend la technologie relative aux polices de caractres, est protg par un copyright et licenci par des fournisseurs de Sun.

Des parties de ce produit pourront tre drives des systmes Berkeley BSD licencis par l'Universit de Californie. UNIX est une marque dpose aux Etats-Unis et dans d'autres pays et licencie exclusivement par X/Open Company, Ltd.

Sun,  Sun Microsystems,  le logo Sun et  Sun StorEdge sont des marques de fabrique ou des marques dposes de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres pays.



L'interface d'utilisation graphique OPEN LOOK et Sun(TM) a t dveloppe par Sun Microsystems, Inc. pour ses utilisateurs et licencis. Sun reconnat les efforts de pionniers de Xerox pour la recherche et le dveloppment du concept des interfaces d'utilisation visuelle ou graphique pour l'industrie de l'informatique. Sun dtient une license non exclusive do Xerox sur l'interface d'utilisation graphique Xerox, cette licence couvrant galement les licencies de Sun qui mettent en place l'interface d 'utilisation graphique OPEN LOOK et qui en outre se conforment aux licences crites de Sun.


END

# end of PRN

  if test -n "$NET"
  then
    ans=D
  else 
    ans=`/usr/bin/ckkeywd -Q -d view -p "Do you accept the terms? " yes no view`
  fi

   case "$ans" in 
   yes)
#       /usr/bin/touch /tmp/accept
       ;;
   no)
       exit 1
       ;;
   view)
       ans=v
       ;;
   esac
done

echo "";
#CUSTNAME=""
#while [ -z "$CUSTNAME" ]; do
#        echo "Please enter your company name: [$XCUSTOMER] \c"
#        read CUSTOMER 
#
#        if [ -z "$CUSTOMER" ]
#        then
#           echo "\nCompany name is empty!\n"
#        else
#           CUSTNAME="$CUSTOMER"
#           echo "${CUSTNAME}" > /$BASEDIR/$PKGDIR/data/customername.data
#        fi
#done
#echo "Thank you $CUSTNAME!"

#echo "  Installation end."
