1993-03-21 12:45:37 +03:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1994-06-30 11:50:26 +04:00
|
|
|
# $NetBSD: slip.login,v 1.3 1994/06/30 07:50:26 cgd Exp $
|
1993-12-10 16:19:12 +03:00
|
|
|
# @(#)slip.login 5.1 (Berkeley) 7/1/90
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# generic login file for a slip line. sliplogin invokes this with
|
|
|
|
# the parameters:
|
|
|
|
# 1 2 3 4 5 6 7-n
|
|
|
|
# slipunit ttyspeed loginname local-addr remote-addr mask opt-args
|
|
|
|
#
|
1994-06-30 11:50:26 +04:00
|
|
|
UNIT=$1
|
|
|
|
LOCALADDR=$4
|
|
|
|
REMOTEADDR=$5
|
|
|
|
NETMASK=$6
|
|
|
|
shift 6
|
|
|
|
OPTARGS=$*
|
|
|
|
|
|
|
|
/sbin/ifconfig sl${UNIT} inet ${LOCALADDR} ${REMOTEADDR} netmask ${NETMASK} \
|
|
|
|
${OPTARGS}
|
1993-03-21 12:45:37 +03:00
|
|
|
exit
|