/[pengfork]/pengfork/src/options.c
ViewVC logotype

Diff of /pengfork/src/options.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by chupa, Sat Oct 19 12:11:58 2002 UTC revision 1.21 by chupa, Tue Nov 26 01:22:31 2002 UTC
# Line 58  const char *section_name[__sect_end] = { Line 58  const char *section_name[__sect_end] = {
58    
59  param_t param[PARAM_MAX] = {  param_t param[PARAM_MAX] = {
60    /* GENERAL CONFIGURATION */    /* GENERAL CONFIGURATION */
61      STR('f', "config-file", NULL, DEFAULT_CONFIG,
62          "read configuration file PATH.", "PATH",
63          __general, NULL),
64    
65    STR(0, "access-method", "access_method", "modem",    STR(0, "access-method", "access_method", "modem",
66        "set the media used to access AOL.", "METHOD",        "set the media used to access AOL.", "METHOD",
67        __general, check_access_method),        __general, check_access_method),
# Line 156  param_t param[PARAM_MAX] = { Line 160  param_t param[PARAM_MAX] = {
160    
161    STR(0, "pid-file", "pid_file", "/var/run/pengfork.pid",    STR(0, "pid-file", "pid_file", "/var/run/pengfork.pid",
162        "set the PID file to create", "PATH",        "set the PID file to create", "PATH",
163        __netiface, NULL),        __general, NULL),
164    
165    STR(0, "ip-up", "ip-up_script", "/etc/pengfork/ip-up",    STR(0, "ip-up", "ip-up_script", "/etc/pengfork/ip-up",
166        "set the script automaticly called when IP is up.", "PATH",        "set the script automaticly called when IP is up.", "PATH",
# Line 249  param_t param[PARAM_MAX] = { Line 253  param_t param[PARAM_MAX] = {
253        "set the serial line speed.", "SPEED",        "set the serial line speed.", "SPEED",
254        __modem, check_line_speed),        __modem, check_line_speed),
255    
256    STR(0, NULL, "login_prompt", "ogin:",    STR('c', "chat-script", "chat_script", "/etc/pengfork/chat/aolnet.scm",
257        NULL, NULL,        "set the chat script used for logging into AOL.", "SCRIPT",
258        __modem, NULL),        __modem, NULL),
259    
   STR(0, NULL, "server_pass_prompt", "assword:",  
       NULL, NULL,  
       __modem, NULL),  
   
   STR('l', "server-login", "server_login", "aol",  
       "set the server login.", "LOGIN",  
       __auth, NULL),  
   
   STR('w', "server-pass", "server_pass", "aol",  
       "set the server pass.", "PASS",  
       __auth, NULL),  
   
   STR(0, NULL, "server_connected", "onnected",  
       NULL, NULL,  
       __auth, NULL),  
   
   STR(0, NULL, "server_bad_passwd", "assword",  
       NULL, NULL,  
       __auth, NULL),  
   
260    INT(0, NULL, "dial_retry", 3,    INT(0, NULL, "dial_retry", 3,
261        NULL, NULL,        NULL, NULL,
262        __modem, check_natural),        __modem, check_natural),
# Line 651  check_config (void) Line 635  check_config (void)
635              debug(5, "  %s = (undefined)\n", param[i].name);              debug(5, "  %s = (undefined)\n", param[i].name);
636          }          }
637          else          else
638          debug(8, "  %s = (default)\n", param[i].name);          debug(8, "  %s = %s (default)\n", param[i].name,
639                  (PARAM_STRING(i)==NULL)?"(undefined)":PARAM_STRING(i));
640          if(param[i].checkfn.check_string != NULL)          if(param[i].checkfn.check_string != NULL)
641          good &= param[i].checkfn.check_string (param[i].name,          good &= param[i].checkfn.check_string (param[i].name,
642                                           PARAM_STRING(i));                                           PARAM_STRING(i));
# Line 731  try_param (param, filename, lineno, name Line 716  try_param (param, filename, lineno, name
716       char *name;       char *name;
717       char *value;       char *value;
718  {  {
719    
720    if (param->name && !strcmp (name, param->name))    if (param->name && !strcmp (name, param->name))
721      {      {
722        if (param->defined) return 1;        if (param->defined) return 1;

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26