OK, let's get cooking. Here are some patches that are needed to
ifup-ppp to support installing a "demand dial" ppp interface. Of course
requisite work in linuxconf should be done to allow it to set some of
the new values. Find below also what I added to my ifcfg-ppp0 to work
with these changes.
ESCAPECHARS/asyncmap did not seem to work. I changed the semantics a
bit. The manpage on pppd is not terribly clear with regard to what the
asyncmap is set to when the option is absent. In my case, pppd required
an asyncmap of FFFFFFFF (probably something less, but certainly more than
00000000) and would not work without the patch included in the below.
--- ifup-ppp.dist Wed Jan 19 05:47:09 2000
+++ ifup-ppp Wed Jan 19 06:23:04 2000
@@ -51,8 +51,8 @@
if [ "${HARDFLOWCTL}" != no ] ; then
opts="$opts modem crtscts"
fi
-if [ "${ESCAPECHARS}" != yes ] ; then
- opts="$opts asyncmap 00000000"
+if [ "${ESCAPECHARS}" = yes ] ; then
+ opts="$opts asyncmap FFFFFFFF"
fi
if [ "${DEFROUTE}" != no ] ; then
# pppd will no longer delete an existing default route
@@ -80,7 +80,16 @@
opts="$opts debug"
chatdbg="-v"
fi
-
+if [ "${DEMAND}" = yes ] ; then
+ if [ "${IDLE}" = "" ]; then
+ echo "\$IDLE is required to have a value when demand dialing"
+ echo "ifup-ppp for $DEVICE exiting"
+ logger -p daemon.info -t ifup-ppp \
+ "\$IDLE is required to have a value when demand dialing"
+ exit 1
+ fi
+ opts="$opts demand idle ${IDLE}"
+fi
if [ -z "$WVDIALSECT" ] ; then
CHATSCRIPT=/etc/sysconfig/network-scripts/chat-$DEVNAME
[ -f $CHATSCRIPT ] || {
--- ifcfg-ppp0.dist Wed Jan 19 05:48:10 2000
+++ ifcfg-ppp0 Wed Jan 19 05:59:17 2000
@@ -18,8 +18,10 @@
ESCAPECHARS="yes"
PPPOPTIONS=""
PAPNAME=""
-REMIP=""
+REMIP="192.168.1.1"
MRU=""
MTU=""
DISCONNECTTIMEOUT="120"
RETRYTIMEOUT="0"
+DEMAND="yes"
+IDLE="60"
Hope to see it in cooker soon!
Thanx,
b.
--
Brian J. Murrell InterLinx Support Services, Inc.
North Vancouver, B.C. 604 983 UNIX
Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD