BUG /usr/sbin/ppp.dial v 2.30.1 [INACTIVE]

To discuss and report ONLY Bugs

BUG /usr/sbin/ppp.dial v 2.30.1

Mensagempor André R. Viggiano » Sáb Nov 01, 2008 8:07 am

problema: usar conexão pppoe com dns de outra provedor.
Quando voce desconecta o ppp.hangup apaga os arquivos /tmp/dnsreal1 e /tmp/dnsreal2

Agora a pergunta porque eu quero desconectar e depois conectar? Porque nao sei que raios o speedy depois de um certo periodo conectado desconecta você, a solução foi colocar todo dia fazer o BFW descconectar e conectar.

Bom voltando ao problema do script
a solução foi
Código: Selecionar todos
#!/bin/sh
#
#!/bin/sh
#
# PPP link dial script
#
# Claudio Roberto Cussuol
# 19/06/2004
#
# Source the coyote linux configuration file
. /etc/coyote/coyote.conf

touch /tmp/realdns1
touch /tmp/realdns2
[ -n "$DNS1" ] && echo "$DNS1" > /tmp/realdns1
[ -n "$DNS2" ] && echo "$DNS2" > /tmp/realdns2

[ -z "$PPP_ISP" ] && PPP_ISP=isp

if [ "$INETTYPE" = "PPP" ] ; then
        if [ "$PPP_DEMANDDIAL" = "NO" ] ; then
                if [ -f /var/run/ppp0.pid ]; then
                        echo "PPP is running already"
                        exit 1
                else
                        echo "Calling $PPP_ISP"
                        /usr/sbin/pppd call $PPP_ISP
                fi
        else
                if ! [ -f /var/run/ppp0.pid ]; then
                        echo "Calling $PPP_ISP"
                        /usr/sbin/pppd call $PPP_ISP
                fi
                echo "Using demand dial."
                ping -c 1 198.41.0.4 </dev/null >/dev/null 2> /dev/null &
        fi
else
#       if [ -f /var/run/ppp0.pid ]; then
#               echo "PPPoE is running already"
#               exit 1
#       else
                echo "Starting PPPoE"
                /usr/sbin/pppd file /etc/ppp/options.pppoe &
#       fi
fi


antes o script não tinha as linhas as 11 a 14
André R. Viggiano
 

Voltar para Bug Reports

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 5 visitantes