#!/bin/sh

PATH=/usr/bin:$PATH
export PATH

if [ "$ROOTDIR" = "/" ]; then
   rel=`uname -r`
elif [ -n "$PATCH_CLIENT_VERSION" ]; then
   rel=$PATCH_CLIENT_VERSION
else
   release_file=$ROOTDIR/var/sadm/system/admin/INST_RELEASE
   if [ -f "$release_file" ]; then
      rel=`grep VERSION $release_file | nawk -F= '{print $2}'`
   else
      echo "It's not clear the OS version of the system. Patch Terminating.."
      echo
      exit 1   
   fi
fi

SUNOS_VERSION=`eval uname -r`
if [ $SUNOS_VERSION -eq 5.9 -a $ROOTDIR = / ]; then
	if [ -x /etc/init.d/devfsadm ]; then
		/etc/init.d/devfsadm stop
	fi
fi

exit 0
