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), |
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", |
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), |
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)); |
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; |