Salut Joker
Voila un script tout bete qui marche bien chez moi,
Je sais c est pas tres joli mais ... manque de temps :)
Si ca peut donner une trame de travail a Joker
==============================================================================================================
#!/bin/sh
# Check IPs from ifconfig
getip() {
NOW=`date`
IP=`ifconfig ppp0 | fgrep "inet ad" | cut -f2 -d":" | cut -f1 -d" "`
echo "$NOW - $IP"
}
echo "Starting checkip: "
# Check if ppp0 is up; if it is not, restart the connection.
while true; do
sleep 60
getip
if ! [ "$IP" ]; then
echo "adsl restart"
echo " --> rmmod usb-uhci"
rmmod usb-uhci
sleep 2
echo " --> modprobe usb-uhci"
modprobe usb-uhci
sleep 2
echo " --> startmodem"
startmodem&
echo " --> mail date() [EMAIL PROTECTED]"
echo
echo " $NOW [EMAIL PROTECTED]" >> myautoconnect.log
# echo " --> dns2go&"
# dns2go&
echo " --> zoneclient.py&"
zoneclient.py&
sleep 30
fi
done
==============================================================================================================
Benoit Midy
Guddland Digital S.A.
Luxembourg
Tel: (352) 50 35 21 / 360
mailto:[EMAIL PROTECTED]
http://www.guddland.lu
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Liste de diffusion "Driver Linux pour modem ECI ADSL USB"
Driver Linux pour modem ECI ADSL USB: http://flashcode.free.fr/linux
Pour se d&alefmaks;sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe