NetBSD/usr.sbin/sliplogin/slip.login

22 lines
506 B
Plaintext
Raw Normal View History

1993-03-21 12:45:37 +03:00
#!/bin/sh -
#
1997-10-17 12:49:29 +04:00
# $NetBSD: slip.login,v 1.4 1997/10/17 08:49:44 mrg Exp $
# from: @(#)slip.login 8.1 (Berkeley) 6/6/93
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
#
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