#!/bin/sh # $Log: S99stamp,v $ # Revision 1.1.1.1 1997/12/02 22:38:59 strombrg # Initial checkin. # cat << \EOF > /tmp/stamp-stuff #!/bin/sh exec > /tmp/stamp-errors 2>&1 PATH=/dcs/bin:$PATH export PATH if [ -f /var/adm/stamp.gz ] then if [ -f /var/adm/stamp-completed ] then GEN=false else if gunzip -c /var/adm/stamp.gz 2> /dev/null | \ tail -1 | \ grep '^done' > /dev/null then touch /var/adm/stamp-completed GEN=false else GEN=true fi fi else GEN=true fi if [ "$GEN" = true ] then /dcslib/allsys/etc/stamp | gzip > /var/adm/stamp.gz fi EOF chmod 755 /tmp/stamp-stuff /dcs/etc/daemon /tmp/stamp-stuff