From: "Pit Linnartz" <linnartz@software-ag.de>
Subject: Re: newbie and system with two SLIP interfaces.
Date: 1999/10/15 [thread overview]
Message-ID: <7u76i2$ks8$1@gamma.ecomp.net> (raw)
In-Reply-To: 7u580h$of8$1@pulp.srv.ualberta.ca
First I have to admit that the last time I played with SLIP was OSF V1.3
days.
>
>Found it, but it looks as though it _should_ be smart enough to be
>starting the second SLIP interface itself. Here's a snippet:
>
> echo > $errtmp
> /sbin/ifconfig $devval $ifval up > $errtmp 2>&1
> if [ $? != 0 ]; then
> ERROR=`cat $errtmp`
> echo "$0: ifconfig failed - $ERROR"
> FAILFLAG=1
> fi
> rm -f $errtmp
This is actual to get the interface configured before up.
> found=`expr $found + 1`
> # get first two characters of device name
> devval2=`echo $devval | cut -c1-2`
> # if SLIP device, do slattach
> if [ "$FAILFLAG" = 0 -a -f /usr/sbin/slattach -a "$devval2" = "sl" ]; then
(man test, -a means binary AND) ok I would agree that -x could be used
instead of -f
but it means essentially
if there was no failure before and the file /usr/sbin/slattach exist and the
devval contains "sl" as
the first two chars.
> slipdev=$slipdev$num # SLIPTTY_n
> eval slipval=\$$slipdev # value of SLIPTTY_n
Here is the error. pls enter
slipdev=SLIPTTY_
> if [ "$slipval" != '' ]; then
> /usr/sbin/slattach $slipval
This should cure your problem. What essentially happens is that you obtain
SLIPTTY_3 in the first run, than
SLIPTTY_34 in the second etc due to the fact that slipdev isn't reseted.
Thanks for pointing this out.
Do you report the problem by yourself.
Pit
next prev parent reply other threads:[~1999-10-15 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-12 4:00 newbie and system with two SLIP interfaces Kevin Beauchamp
1999-10-14 4:00 ` Pit Linnartz
1999-10-14 4:00 ` Kevin Beauchamp
1999-10-15 4:00 ` Pit Linnartz [this message]
1999-10-15 4:00 ` Kevin Beauchamp
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox