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

[MiNT] how to detect a connection?



How can I wait for a ppp-connetion to establish?

Currently I'm using some kind of polling:

        x=0
        while ! ( route | grep -q ppp ) && [ $x -le 5 ]
        do
                let x=x+1
                sleep 15
        done

And looking for something more elegant.

-Helmut