From: kbeaucha@gpu.srv.ualberta.ca (Kevin Beauchamp)
Subject: Re: newbie and system with two SLIP interfaces.
Date: 1999/10/15 [thread overview]
Message-ID: <7u7f66$icm$1@pulp.srv.ualberta.ca> (raw)
In-Reply-To: 7u76i2$ks8$1@gamma.ecomp.net
"Pit Linnartz" <linnartz@software-ag.de> writes:
> First I have to admit that the last time I played with SLIP was
> OSF V1.3 days.
[- snip -]
>> 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!
So what you're saying is that this section of the script should look
like this:
# if SLIP device, do slattach
if [ "$FAILFLAG" = 0 -a -f /usr/sbin/slattach -a "$devval2" = "sl" ]; then
slipdev=$slipdev$num # SLIPTTY_n
eval slipval=\$$slipdev # value of SLIPTTY_n
slipdev=SLIPTTY_
if [ "$slipval" != '' ]; then
/usr/sbin/slattach $slipval
fi
fi
This is done to return the value of $slipdev to what it is initialized
to near the beginning of the script, after having its original value
modified during this test.
A very similar series of commands appears later in the script which
check for SLIP devices but also tests for the existence of an slattach
pid file. Since it also modifies the value of $slipdev, I assume that
the same change must be inserted there are well.
> Thanks for pointing this out.
Thank you for finding it.
> Do you report the problem by yourself.
I'm not sure what you mean. Is there a contact to whom all of these
types of problems are reported?
Thanks again.
Kevin Beauchamp
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
1999-10-15 4:00 ` Kevin Beauchamp [this message]
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