[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script to stay connected//dynamic IPs

On Wednesday 02 June 2004 17:17, debian-user-digest-request@lists.debian.org 
> Just run a cron-job with a script like this
> #!/bin/bash
> ifconfig ppp0
> if [ $? != "0" ]
> then
>     ifup ppp0
> fi

This an another, similar script posted did not quite work. Ifup says ppp0 is 
an unconfigured device if not connected or unknown device ppp0=ppp0 if 
connected. I got it to work using a direct pptp or pon here, slept a bit and 
then called the ipcheck to update the dynamic dns provider.

Seems to work ..... see how it goes!

Reply to: