From 7c653e4b85459992c8fc59673cc2cbbcce2679cf Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 5 Jan 2009 19:52:40 +0100 Subject: [PATCH] Fix modem dialup --- src/initscripts/init.d/networking/red | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/initscripts/init.d/networking/red b/src/initscripts/init.d/networking/red index 9b4ffe8a0..a575c0e14 100644 --- a/src/initscripts/init.d/networking/red +++ b/src/initscripts/init.d/networking/red @@ -295,8 +295,10 @@ case "${1}" in if [ "$TYPE" == "modem" ]; then PLUGOPTS=" /dev/${COMPORT} ${DTERATE} connect /etc/ppp/dialer lock modem crtscts" + METHOD="PPPOE_PLUGIN" elif [ "$TYPE" == "serial" ]; then PLUGOPTS=" /dev/${COMPORT} ${DTERATE} connect /bin/true lock modem crtscts" + METHOD="PPPOE_PLUGIN" fi ### Standard PPP options we always use @@ -326,11 +328,12 @@ case "${1}" in # if [ "$TYPE" == "pptp" ]; then PPPOE_CMD="pptp $PPTP_PEER --nolaunchpppd" + METHOD="" fi ### Run everything # - if [ "$TYPE" == "pppoe" ] && [ "${METHOD}" == "PPPOE_PLUGIN" ]; then + if [ "$METHOD" == "PPPOE_PLUGIN" ]; then /usr/sbin/pppd $PPP_STD_OPTIONS $DEBUG $DEMAND >/dev/null 2>&1 & evaluate_retval # echo PLUGIN: /usr/sbin/pppd $PPP_STD_OPTIONS $DEBUG $DEMAND