#!/bin/sh # #ident "@(#)i.kcron 1.7 98/07/24 SMI" # # Copyright (c) 1997, by Sun Microsystems, Inc. # All rights reserved. # PATH="/usr/bin:/usr/sbin:${PATH}" export PATH trap "rm -f /tmp/$$;exit" 0 1 2 3 13 15 while read src dest do if [ ! -f $dest ] ; then cp $src $dest else # # add the kprop script if needed # grep "/usr/krb5/lib/kprop_script" $dest >/dev/null 2>&1 if [ $? != 0 ]; then line=`grep /usr/krb5/lib/kprop_script $src` if [ "$line" ]; then echo "$line #$PKGINST" >> $dest fi fi # # add gsscred cleanup script # grep "/usr/lib/gss/gsscred_clean" $dest >/dev/null 2>&1 if [ $? != 0 ]; then line=`grep /usr/lib/gss/gsscred_clean $src` if [ "$line" ]; then echo "$line #$PKGINST" >> $dest fi fi fi done exit 0