#!/bin/sh
# $Header: /usr/src/local/imps/src/RCS/make_pipe.sh,v 1.1 90/11/07 07:05:05 ramsdell Exp $

# Creates a named pipe for xdg and T.
if test -d /kernel
   then MKNOD=/usr/sbin/mknod
   else MKNOD=/usr/etc/mknod
   fi

if test ! "$1" 	# Make sure there is an argument.
then
  echo "; Null argument to $0." >&2
  exit 1
fi

rm -f $1
trap 'rm -f $1; exit' 1 2 3 15
$MKNOD $1 p
