Fix modem dialup

This commit is contained in:
Arne Fitzenreiter
2009-01-05 19:52:40 +01:00
parent 1868001406
commit 7c653e4b85

View File

@@ -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