# 
# ****************************************************************
# *	Copyright (C) Tadpole Technology PLC 1994                *
# *	All Rights Reserved.					 *
# ****************************************************************
# 
#  ============================================================
#  Filename: sldetach
#  Revision: 1.1 (15 Apr 1994)
#  ============================================================
#
# sldetach removes the serial line that is being used for slip connection.
#

if [ $# != 1 ]; then
	echo "Usage: sldetach interface|host"
	exit 1
fi

ps=`/bin/ps -ef | grep -v grep | grep slattach | grep $1`

if [ "$ps" != "" ]; then
	kill -15 `echo $ps | nawk '{print $2}'`
else
	echo "sldetach: interface unit $1 not found"
fi
