From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,912dc989ca19d6c X-Google-Attributes: gidfee84,public From: kbeaucha@gpu.srv.ualberta.ca (Kevin Beauchamp) Subject: Re: newbie and system with two SLIP interfaces. Date: 1999/10/15 Message-ID: <7u7f66$icm$1@pulp.srv.ualberta.ca>#1/1 X-Deja-AN: 537094599 References: <7u0civ$irg$1@pulp.srv.ualberta.ca> <7u4pim$sop$1@gamma.ecomp.net> <7u580h$of8$1@pulp.srv.ualberta.ca> <7u76i2$ks8$1@gamma.ecomp.net> Organization: University of Alberta, Edmonton, Canada Reply-To: kbeau@pp132.facmgmt.ualberta.ca Newsgroups: comp.unix.osf.osf1 "Pit Linnartz" 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