#!/bin/sh exec 2>&1 export HOME="`pwd`" export RRDPATH=./data . ./config.sh.example . ./config.sh mkdir -p "$RRDPATH" PATH=".:$PATH" time4rdns=0 while : do sleep $((160-1`date +%S`)) if mono2ipfw | ipfw2mysql then mysql2rrdtool "$RRDPATH" fi time4rdns=$((($time4rdns+1)%60)) if [ $time4rdns = 1 ] then mono2rdns | rdns2mysql fi done