#!/bin/ksh -p
## Patch is the minimum path number that is required
## This assumes that the patch also includes a regular SUNW_REQUIRES for patch

 patch=118844-14
 uname=$(uname -v)
 uname=${uname##*_}    # remove text before underscore...

 if [ "$ROOTDIR" = "/" ] ; then
     if [[ $uname == "Generic" ]] || \
     [[ ${uname%-*} == ${patch%-*} && ${uname#*-} -lt ${patch#*-} ]]; then
         print -u2 "\
         In order to apply this libc patch, the Kernel patch ${patch},
         or a higher rev, must be installed and the system rebooted 
         prior to installing this patch. \
         "
         exit 1
    fi
 fi
exit 0

