and use this as your selection.# touch /etc/ppp/peers/MyISP
You probably need to put a "/bin/" before the "ls" in the $peerlist option.
For chat: run it with the -vsS options (read the man page)
For pppd: use the debug option and/or "logfd 2" (read the man page)
Since ppp-rc version 0.7, this has become a bit easier. Simply set the option to have a debug button ($havedebugbutton=1 in ppp-rc.cgi), and call chat like this in the ppp options:
The actual commandline may be different, but it has to be run through a shell, because $verbswitch will equal to '-v' if the debug button is pressed.connect '/bin/sh -c "/usr/sbin/chat $verbswitch -Ssf /etc/ppp/mychat"'
This also happens if pppd is started such that the device is not a terminal, for example with wvdial. In this case, the script will never finish because pppd cannot detach. If you insist on this configuration, you'll have to abort the loading of the start page. The connection should work nonetheless.
Here's a list of sites that may help you with this:
It is possible to use other dialers by changing the $pppd, $peerlist and $peerpattern variables in the ppp-rc.cgi code. $peerlist is an external command that is run to determine the list of possible connections. The output is run through the $peerpattern regular expression to determine the names. Then, when a selection is to be started, the name is substituted into the second %s place holder in $pppd, which contains the command to be run. The first %s will be "debug" if the debug button has been pressed. To disable this, write %0.0s instead of the first %s.