Petite am�lioration :
#! /bin/sh
#
# network Bring up ppp0 connection
#
# By Jeremy Levy, Paris
#
# v1.0 06.01.2004
# v1.1 11.01.2004
#####
export LC_ALL="C"
export LANG="C"
export LANGUAGE="C"
PPP=ppp0
test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0
if [ -x /etc/ppp/ppp_on_boot ]; then RUNFILE=1; fi
#
#####
ADD_PPP=`/sbin/ifconfig $PPP | grep 'inet addr:' | sed 's/.*inet
addr:\([0-9.]*\).*/\1/g'`
if [ -x $ADD_PPP ]; then
echo -n "Starting up PPP link: pppd"
if [ "$RUNFILE" = "1" ]; then
su - -c "/etc/ppp/ppp_on_boot"
else
pppd call provider
fi
echo "."
else
echo " PPP---MARK---PPP "
fi
exit 0
Jeremy Levy a �crit:
Salut,
j'ai fais un petit script sympa pour une copine sur tele2 :
# more /etc/cron.d/ppp_restart
----------------------------------------------------------------------
0-55/5 * * * * root /usr/local/sbin/if_ppp_restart
----------------------------------------------------------------------
# more /usr/local/sbin/if_ppp_restart
----------------------------------------------------------------------
#! /bin/bash
#
# network Bring up ppp0 connection
#
# By Jeremy Levy, Paris
#
# v1.0 06.01.2004
#####
export LC_ALL="C"
export LANG="C"
export LANGUAGE="C"
PPP=ppp0
#
#####
ADD_PPP=`/sbin/ifconfig $PPP | grep 'inet addr:' | sed 's/.*inet
addr:\([0-9.]*\).*/\1/g'`
if [ -x "$ADD_PPP" ]; then
echo "ppp0 en cours de redemarrage"
/etc/init.d/ppp restart
else
echo "--- MARK-PPP ---"
fi
exit 0
----------------------------------------------------------------------
dcabaton a �crit:
Il y a apparament des problemes d'identification chez tele2 :
http://editorial.tele2internet.fr/?page=ETAT_RESEAU&popup=1
J'sais pas si ca viens de l� et c'est peut-etre li�.
je suis chez tele2 avec une woody et je rencontre pas mal de
deconnection..... 2/3 auojourd'hui......
sinon j'ai simplement utiliser pppoeconf pour configurer ma connexion !
DaViD
--
Mail gratuit, Chat, recherche, retrouvez tous vos outils sur
http://www.netscape.fr/