On Sun, 13 Aug 2000, Marc Dufresne wrote:

|I am using eql-1.2.tar.gz. I forget where I got this from, its been awhile. 
|I am pretty sure it is refrence to the eql.txt file that came with RH or I 
|went to RH support site and found the EQL HOWTO which told me where to 
|download it from.

Thanks for the information, there shouldn't be any problem finding it.

|The only way I can get everything automated is using nested if statements in 
|my ip-up script.
|
|This is my ip-up script:
|
|if (/sbin/ifconfig |grep -q ppp0); then
|   if (/sbin/ifconfig |grep -q ppp1)
|       eql_enslave eql ppp0 115200
|       eql_enslave eql ppp1 115200
|       /sbin/route add default ppp0
|   fi
|fi

How about using

if [ ppp0 = "$1" ]; then
   /PATH/eql_enslave eql ppp0 115200
elif [ ppp1 = "$1" ]; then
   /PATH/eql_enslave eql ppp1 115200
   /sbin/route add default eql
else
   echo The PPP interface $1 is not valid for EQL!
fi

where /PATH is the full path for eql_enslave. (I'm not sure just what
environment ip-up inherits, if any.)  The script assumes that the first
pppd instance grabs ppp0 and the second instance then uses ppp1.

I'll readily admit ignorance of EQL so this suggestion may be funny
rather than useful. :)

---
Clifford Kite                                               Not a guru. (tm)


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to