#!/bin/sh
# $NetBSD: script,v 1.1 2001/04/25 03:43:31 garbled Exp $
echo "$2 $1 $3" >>/etc/hosts
if [ "$?" = "0" ]; then
echo "Added host $1 to /etc/hosts"
else
echo "Failed to add host $1"
fi