OK so I'm really asking for it! I am trying to use diald!
Version is 0.16.5a-1 with ppp 2.3.5-1 under RH5.2 2.0.36 kernel.
I have edited the /etc/diald/connect file to include the phone number etc
but my ISP is using PAP so most of it needs commenting out. But I get a
lock file problem:
Sep 13 21:29:35 mercury kernel: SLIP: version
0.8.4-NET3.019-NEWTTY-MODULAR (dynamic channels, max=256).
Sep 13 21:29:35 mercury kernel: SLIP linefill/keepalive option.
Sep 13 21:29:36 mercury kernel: Swansea University Computer Society IPX
0.34 for NET3.035
Sep 13 21:29:36 mercury kernel: IPX Portions Copyright (c) 1995 Caldera,
Inc.
Sep 13 21:29:37 mercury kernel: Appletalk 0.17 for Linux NET3.035
Sep 13 21:29:41 mercury diald[14134]: Removed stale lock on modem (pid
14103)
Sep 13 21:29:42 mercury diald[14134]: Running connect (pid = 14146).
Sep 13 21:29:42 mercury connect: Initializing Modem
Sep 13 21:29:42 mercury connect: Dialing 01706644433
Sep 13 21:29:44 mercury connect: chat: Sep 13 21:29:44 CONNECT 115200/PPP
64000/NONE
Sep 13 21:29:44 mercury connect: Protocol started
... So it seems to have started and connected, but:
Sep 13 21:29:44 mercury diald[14134]: Running pppd (pid = 14155).
Sep 13 21:29:45 mercury kernel: PPP: version 2.2.0 (dynamic channel
allocation)
Sep 13 21:29:45 mercury kernel: PPP Dynamic channel allocation code
copyright 1995 Caldera, Inc.
Sep 13 21:29:45 mercury kernel: PPP line discipline registered.
Sep 13 21:29:45 mercury kernel: registered device ppp0
Sep 13 21:29:45 mercury pppd[14155]: pppd 2.3.5 started by root, uid 0
Sep 13 21:29:45 mercury pppd[14155]: Device modem is locked by pid 14134
Sep 13 21:29:45 mercury pppd[14155]: Exit.
It seems to be connected from the message but I can't ping anything and
pppd complains of a lock by the diald process. Presumably diald calls
pppd. In the options file used by the standard pppd there is a lock but
this is not called by the chat with diald.
The connect script (with all '#'s removed) is:
(beginning of file)
MODEM_INIT="ATb40s=0s79=0"
PHONE_NUMBER="xxxxxxxx"
USER_NAME=""
function message () {
[ $FIFO ] && echo "message $*" >$FIFO
logger -p local2.info -t connect "$*"
}
message "Initializing Modem"
chat TIMEOUT 5 "" $MODEM_INIT TIMEOUT 45 OK ""
if [ $? != 0 ]; then
message "Failed to initialize modem"
exit 1
fi
>/var/log/diald.connect
message "Dialing $PHONE_NUMBER"
chat -r /var/log/diald.connect \
REPORT CONNECT \
TIMEOUT 20 \
ABORT "NO CARRIER" \
ABORT BUSY \
ABORT "NO DIALTONE" \
ABORT ERROR \
"" ATDT$PHONE_NUMBER \
CONNECT ""
case $? in
0) message "$(cat /var/log/diald.connect)";;
1) message "Chat Error"; exit 1;;
2) message "Chat Script Error"; exit 1;;
3) message "Chat Timeout"; exit 1;;
4) message "No Carrier"; exit 1;;
5) message "Busy"; exit 1;;
6) message "No DialTone"; exit 1;;
7) message "Modem Error"; exit 1;;
*)
esac
message "Protocol started"
(end of file)
Simple guidance anyone?
John
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]