#! /bin/sh
#
# Copyright (c) 2003 by Sun Microsystems, Inc.
# All rights reserved.
#
#
#
# Check for SUNWwbsup and Create /etc/netboot Directory 

/usr/bin/pkginfo -q -R $ROOTDIR SUNWwbsup 

if [ $? -eq 0 ]; then  
    if [ ! -d $ROOTDIR/etc/netboot ]; then 
       /usr/bin/mkdir $ROOTDIR/etc/netboot
       /usr/bin/chmod 0755 $ROOTDIR/etc/netboot
       /usr/bin/chgrp sys $ROOTDIR/etc/netboot 
    fi
  exit 0
fi

echo "This patch requires the installation of \c"
echo "the WAN boot support package, SUNWwbsup."
echo
echo "Please load the package SUNWwbsup before continuing \c"
echo "with this patch installation.  This package can be \c" 
echo "found on the Solaris 9 Update 5 (Beta) CDs."
echo ""

exit 1
