home *** CD-ROM | disk | FTP | other *** search
- #******************************************************************************
- #
- # Copyright (C) 1995 The Santa Cruz Operation, Inc.
- # All Rights Reserved.
- #
- # The information in this file is provided for the exclusive use of
- # the licensees of The Santa Cruz Operation, Inc. Such users have the
- # right to use, modify, and incorporate this code into other products
- # for purposes authorized by the license agreement provided they include
- # this notice and the associated copyright notice with any such product.
- # The information in this file is provided "AS IS" without warranty.
- #
- #===============================================================================
- buildDate="3.5.2 - Mon Jan 27 13:22:20 1997"
-
-
- OK=0
- FAIL=1
-
- # This script was built from shell library
- # $Id: install.shlib,v 10.16.2.3 1997/02/11 19:58:19 tobyd Exp $
-
- GLOB_VISION_FILE=/etc/vision.conf
- VISION_FILE=/etc/vision.conf
-
-
-
- # There are three scenarious in which this script will run:
- #
- # $HOW_INSTALL=
- #
- # (a) NORMAL: It is called from pkgadd'ing the individual package
- # or from the network set installation.
- #
- # (b) ON_BFLOP: It is called from foundation set installation on the
- # boot floppies. This is the extraction phase. Pkgadd
- # is run to do the initial load of the pkg.
- #
- # (c) POSTREBOOT: It is called upon reboot from set installation on the
- # boot floppies. This is the postreboot phase.
- #
- HOW_INSTALL=NORMAL
- [ -f /tmp/VISIONFS_ON_BFLOP -o -f /etc/inst/scripts/postreboot.sh ] && {
- HOW_INSTALL=ON_BFLOP
- exit $OK
- }
- [ -f /etc/rc3.d/S90isl_visionfs -o -f /etc/rc2.d/S02POSTINST ] && {
- HOW_INSTALL=POSTREBOOT
- exit $OK
- }
-
-
- hostname="`uname -n | sed 's@^\([^\.]*\).*@\1@'`"
-
- N=""
- C=""
- if echo -n | grep n > /dev/null
- then
- C="\c"
- else
- N="-n"
- fi
- _ss_headlines="--------------------------------------------------------------------------"
-
-
- # make sure the existing server is stopped before
- # we go any further. This won't be required when
- # IQM driven, we can assume nothing is running when
- # the OS is being installed!
-
- $GLOBDIR/visionfs/bin/visionfs stop --quiet 1>/dev/null 2>&1
-
- exit $OK
-