dip -k
' for PPP?No. There is no `dip -k
'.
In the chat directory, there is a `PPP-off
' script. This
will stop the PPP link in the same manner as the 'dip -k
'.
I have included it below. (Cut it out. Store it in its own file. Make the file executable with chmod.)
#!/bin/sh DEVICE=ppp0 # # If the ppp0 pid file is present then the program is running. Stop it. if [ -r /var/run/$DEVICE.pid ]; then kill -INT `cat /var/run/$DEVICE.pid` # # If the kill did not work then there is no process running for this # pid. It may also mean that the lock file will be left. You may wish # to delete the lock file at the same time. if [ ! "$?" = "0" ]; then rm -f /var/run/$DEVICE.pid echo "ERROR: Removed stale pid file" exit 1 fi # # Success. Let pppd clean up its own junk. echo "PPP link to $DEVICE terminated." exit 0 fi # # The PPP process is not running for ppp0 echo "ERROR: PPP link is not active on $DEVICE" exit 1
There are several reasons for this.
modem
' parameter?
This parameter controls whether or not the pppd
process is
to control and honor the signals reflecting the modem status. This
parameter is explained in the man page for pppd
.
The DTR signal is generated by the computer and instructs the modem to disconnect. Hayes sequence for this is usually "&D1" or "&D2" with "&D2" being the preferred setting for PPP. Many manufacturers will ignore the DTR condition in their `factory defaults' setting.
The `shell' script should have a format similar to the following:
#!/bin/sh exec pppd -detach modem ...
Next Chapter, Previous Chapter
Table of contents of this chapter, General table of contents
Top of the document, Beginning of this Chapter