Home | History | Annotate | Download | only in SUNWbsr
      1 #
      2 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
      3 # Use is subject to license terms.
      4 #
      5 # CDDL HEADER START
      6 #
      7 # The contents of this file are subject to the terms of the
      8 # Common Development and Distribution License, Version 1.0 only
      9 # (the "License").  You may not use this file except in compliance
     10 # with the License.
     11 #
     12 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     13 # or http://www.opensolaris.org/os/licensing.
     14 # See the License for the specific language governing permissions
     15 # and limitations under the License.
     16 #
     17 # When distributing Covered Code, include this CDDL HEADER in each
     18 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     19 # If applicable, add the following below this CDDL HEADER, with the
     20 # fields enclosed by brackets "[]" replaced with your own identifying
     21 # information: Portions Copyright [yyyy] [name of copyright owner]
     22 #
     23 # CDDL HEADER END
     24 #
     25 # ident	"%Z%%M%	%I%	%E% SMI"
     26 #
     27 
     28 if [ "$UPDATE" = "yes" ]; then 
     29 
     30         #
     31         # If we are upgrading a system with smf(5) already present, then
     32         # we won't take any action.  Otherwise, if the boot services would
     33 	# have been enabled before, preserve that state.
     34         #
     35         BASEPREFIX=`echo $BASEDIR | sed "s/\//_/g"`
     36 
     37         FILENAME=`echo sunwbsr_boot"$BASEPREFIX" | cut -c 1-256`
     38         TMPFILE=/tmp/$FILENAME
     39         if [ -f $TMPFILE ]; then
     40                 rm $TMPFILE
     41         fi
     42 
     43         if [ ! -f $BASEDIR/var/svc/manifest/network/rarp.xml ]; then
     44                 if [ -d $BASEDIR/tftpboot ] || [ -d $BASEDIR/rplboot ]
     45 		then
     46                         touch $TMPFILE
     47                 fi
     48         fi
     49 fi
     50