#!/bin/sh

# Copyright 1988-1991 Network Computing Devices, Inc.  All rights reserved.
# An unpublished work.

#ident "@(#)del_prt	14.1	91/02/26"

SEP="%"
if [ "$DESTBIN" = "" ]; then DESTBIN=/usr/local/bin/ncdprint; fi

HOSTFILE=/etc/hosts

EXIT_OK=0
EXIT_USAGE=1
EXIT_ERROR=2

if [ $# -ne 2 ]
then
    echo "Usage: del_prt type name" >&2
    exit $EXIT_USAGE
fi

type="$1"
case "$type" in
    ascii)
	;;
    dj*)
	;;
    lj*) 
	;;
    lw*| lw*up)
	;;
    *)
	echo "Invalid printer type: $type" >&2
	exit $EXIT_ERROR
	;;
esac

name="$2"

link="${DESTBIN}/if${SEP}${type}${SEP}${name}"
if [ -f "$link" ]
then
    rm -f ${DESTBIN}/if${SEP}${type}${SEP}${name}
fi
