#!/bin/sh

if [ -z "$APRS4R_LIB" ]; then
  APRS4R_LIB=/usr/lib/ruby/1.8
fi

if [ -z "$APRS4R_LOG" ]; then
  APRS4R_LOG=/var/log/aprs4r
fi

/bin/mkdir -p $APRS4R_LOG

/usr/bin/ruby $APRS4R_LIB/aprs4r.rb $1 > $APRS4R_LOG/aprs4r-stdout.log 2> $APRS4R_LOG/aprs4r-stderr.log & 
