:
# @(#)sldetach	1.1
#
# sldetach removes the serial line that is being used for slip connection.
#

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

ps=`ps -ef | grep -v grep | egrep 'slattach|slipd' | grep $1`

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