#!/bin/sh

SAMPLE_DIR=sample.data
RWHOIS_BASE_DATA_DIR=`pwd`/$SAMPLE_DIR


echo "you need to be root to do this"
echo ""
echo "/***** /etc/services additions *****/"
echo ""
echo "rwhois         4321/tcp                # Referral whois server"
echo ""
echo "/***** /etc/inetd.conf additions *****/"
echo ""
echo "rwhois stream tcp nowait root /usr/local/etc/rwhoisd rwhoisd -d \
  $RWHOIS_BASE_DATA_DIR"
echo ""
exit 0
