From 8527838766611af9a762f8607128ea33099288db Mon Sep 17 00:00:00 2001 From: cgd Date: Thu, 30 Jun 1994 07:50:26 +0000 Subject: [PATCH] do the right thing with positional parameters --- usr.sbin/sliplogin/slip.login | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/usr.sbin/sliplogin/slip.login b/usr.sbin/sliplogin/slip.login index 8e83bab12217..ed3a67a8cc9e 100644 --- a/usr.sbin/sliplogin/slip.login +++ b/usr.sbin/sliplogin/slip.login @@ -1,5 +1,6 @@ #!/bin/sh - # +# $NetBSD: slip.login,v 1.3 1994/06/30 07:50:26 cgd Exp $ # @(#)slip.login 5.1 (Berkeley) 7/1/90 # @@ -8,5 +9,13 @@ # 1 2 3 4 5 6 7-n # slipunit ttyspeed loginname local-addr remote-addr mask opt-args # -/sbin/ifconfig sl$1 inet $4 $5 netmask $6 $7 $8 $9 $10 $11 +UNIT=$1 +LOCALADDR=$4 +REMOTEADDR=$5 +NETMASK=$6 +shift 6 +OPTARGS=$* + +/sbin/ifconfig sl${UNIT} inet ${LOCALADDR} ${REMOTEADDR} netmask ${NETMASK} \ + ${OPTARGS} exit