#!/usr/local/sbin/slips
#
# This script takes down a SLIP link. You must specify the target
# host on the command line.

source /usr/local/lib/slipsh/common.tcl

set remote [lindex $argv 0]

set pid [get_pid $remote]

if {$pid == {}} {
	puts "$argv0: No line lock for host $remote"
	exit 2
}

catch {sys kill SIGHUP $pid}
remove_pid $remote
