[arachne] Re: how much work will users do?

Arachne at FreeLists---The Arachne Fan Club!

On Wed, 16 Jan 2008 15:51:56 -0500, Glenn McCorkle wrote:

<snip>

> |
> | In-order to add full-internal-setup support for lsppp....
> |
> | BOTH your core _and_ the STD core must be modified to grab data from
> | arachne.cfg and write that data into lsppp.cfg
> |
> | In the STD core... this will be quite simple to add.
> |
> | The same section of code that is now writing data into pppdrc.cfg
> | can also be used to write data into lsppp.cfg
> |
> | But in your core.... you must first re-enable the writing of the data
> | into arachne.cfg and re-enable the writing of data into pppdrc.cfg
> |
> | Only then would we be able to also write the needed data into lsppp.cfg
> |
> |==========================================================================
>                                                                        |   ||


Yep.... it was just as easy as I thought it would be. ;-)



|===============================================================================
|
| 770) Wed, Jan 16, 2008 - 4:26:52 pm 
|
| glennmcc>
| Done..... STD core now writes all needed data into lsppp.cfg
|
| I am here right now dialed-in using lsppp.exe with the lsppp.cfg file
| written by core.exe
|
| All of this data was grabbed from arachne.cfg by core.exe and written
| into lsppp.cfg
|
| --- lsppp.cfg ---
| /M:AT&fs7=90s11=50
| /d:330-423-4010
| /B:115200
| /i:3
| /b:0xd000
| /U:glennmcc@xxxxxxxxxx
| /P:******
| /V:60
| ___________________
|
|===============================================================================
|
| 771) Wed, Jan 16, 2008 - 4:34:25 pm 
|
| glennmcc>
| --- in adial.c right after the section that writes pppdrc.cfg ----
|
| //!!glennmcc: Jan 16, 2008 -- also write needed data into lsppp.cfg
|  {
|   int f=a_open("lsppp.cfg",O_TEXT|O_WRONLY|O_CREAT|O_TRUNC,S_IREAD|S_IWRITE);
|   if(f!=-1)
|   {
|    char *base,*default_base[4]={"0x3f8","0x2f8","0x3e8","0x2e8"};
|    char *irq,*default_irq[4]={"4","3","4","3"};
|    int port=0;
|
|    value=configvariable(&ARACHNEcfg,"Port",NULL);
|    if(value)
|     port=atoi(value)-1;
|
|    if(port>=0 && port<4)
|    {
|     irq=default_irq[port];
|     base=default_base[port];
|    }
|    else
|    {
|     irq=configvariable(&ARACHNEcfg,"Irq",NULL);
|     base=configvariable(&ARACHNEcfg,"Base",NULL);
|    }
|
|    sprintf(buf,"\
| /M:%s\n\
| /d:%s\n\
| /B:%s\n\
| /i:%s\n\
| /b:%s\n\
| /U:%s\n\
| /P:%s\n\
| /V:60\n",
|    configvariable(&ARACHNEcfg,"InitString",NULL),
|    configvariable(&ARACHNEcfg,"PhoneNumber",NULL),
|    configvariable(&ARACHNEcfg,"Speed",NULL),
|    irq,base,
|    configvariable(&ARACHNEcfg,"PPPusername",NULL),
|    configvariable(&ARACHNEcfg,"PPPpassword",NULL));
|    write(f,buf,strlen(buf));
|    a_close(f);
|   }
|   dospppd=1;
|   pausemsg=MSG_ESC;
|  }
| //!!glennmcc: end
|
| #endif
|_______________________________________________________________________________
|
|===============================================================================
|
| 772) Wed, Jan 16, 2008 - 4:35:19 pm 
|
| glennmcc>
| Now I'll modify the wizard page so that the user can choose to use
| either miniterm.exe/epppd.exe or lsppp.exe
|
|===============================================================================
|
| 775) Wed, Jan 16, 2008 - 5:04:08 pm 
|
| ray>
| As to the keywords, *thats* what I can't stand -- anything half
| baked, sorta useful sometimes. What you've done looks very nice.
| Shit, if there's a setup wizard, it should be able to do the
| whole job or don't waste my time. 
|
|===============================================================================
|
| 776) Wed, Jan 16, 2008 - 5:11:36 pm 
| URL
|
| glennmcc>
| There we go.... updated as needed so we can now choose
| Miniterm/Epppd or Lsppp
|
| http://cisnet.com/glennmcc/lspppwiz.zip
|
|  3162  01-16-08 16:53  ARACHNE/SYSTEM/GUI/WIZARD5.AH
| 11406  01-16-08 17:06  ARACHNE/SYSTEM/GUI/CONF_PPP.AH
|
|===============================================================================
|
| 777) Wed, Jan 16, 2008 - 5:13:50 pm 
|
| glennmcc>
| No wasted time anymore dude... it now does the whole freakin' job 100%
| internally via the wizards/options pages. :))
|
|===============================================================================
|
| 778) Wed, Jan 16, 2008 - 5:18:36 pm 
|
| ray>
| As usual, our fighting ends up with something good happening :-)
|
| But that won't work with mine needless to say :( 
|
|===============================================================================
|
| 779) Wed, Jan 16, 2008 - 5:18:47 pm 
|
| glennmcc>
| So......
|
| 1) re-enable _all_ of the connection keywords
| 2) re-enable the writing of pppdrc.cfg
| 3) add my new code for writing lsppp.cfg
|
| Do those 3 things and your core will also be able to do EVERYTHING 100%
| internally.
|
| The entire situation of manual editing will now be OPTIONAL not REQUIRED.
|
| The user can manually edit if they so choose..... but if they do not
| want to manually edit... no problem... everything they need will be
| where it needs to be when it needs to be there WITHOUT the need to
| manually put it there via editing any files.
|
|===============================================================================
|
| 783) Wed, Jan 16, 2008 - 5:39:49 pm 
|
| Ron>
| Ray,
| Re: 779
|
|    Can you do that, Ray ?
|
|    If you can, then please do so.
|
|    And then your distro will be at least as easy to setup as the
| standard one. And unless it is as easy as the standard distro, all your
| work will be wasted.
|
|===============================================================================
|
| 785) Wed, Jan 16, 2008 - 5:55:56 pm 
|
| Ron>
| Ray,
|     Do you have a reason for not wanting to put back into your core the
| stuff Glenn is talking about ?   Is it just the space/bytes it would add
| to your core ? 
|
|===============================================================================

-- 
 Glenn
 http://www.delorie.com/listserv/mime/
 http://www.cisnet.com/glennmcc/
 http://www.law.cornell.edu/constitution/constitution.table.html
                  Arachne at FreeLists                  
-- Arachne, The Premier GPL Web Browser/Suite for DOS --

Other related posts: