#!/bin/sh

. /etc/PG.conf

FLOWEYE="/usr/ramdisk/bin/floweye"

while true
do
    version=`${FLOWEYE} ipdb stat | grep "version=" | cut -d"=" -f2`

    if [ "${version}" = "NULL" -a -e ${PGETC}/ip.dat ]; then
        errmsg=`${FLOWEYE} ipdb load file=${PGETC}/ip.dat`
    fi

    sleep 60
done
