#!/bin/sh 
#
# SLIP-RESTART "port" "speed" 
#
# Simply restarts SLATTACH, in case the connection is already up; we
# won't have to redial and connect. Doesn't check if SLATTACH is already
# running; should be run only once, and at boot up.

PORT=$1
SPEED=$2
TEMP=/tmp/slip-check.lock

rm -f $TEMP
stty -f ${PORT} -clocal cs8
/usr/bin/nohup /sbin/slattach ${PORT} ${SPEED} > /dev/null
