Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using a 3G modem for a router running Ubuntu server 10.04. I have the connection established using wvdial, which works successfully, but sometimes the connection drops. I would like it to auto re-connect.

I've set the "auto reconnect" in wvdial.conf, but this does not seem to work. Any ideas? Am I missing a config option, or should I try writing a script which polls the network status and resets if ppp0 has gone down?

share|improve this question
Ideally you would configure NetworkManager to handle this task, and reconnect when the connection is down. – user4124 Jan 25 '11 at 15:55
I'm not using NetworkManager - this is a server machine, so I need manual control over the interfaces. – askvictor Jan 26 '11 at 2:29

1 Answer

You can disable the auto reconnect feature of wvdial and provide a wrapper script instead of calling wvdial (no need for polling):

#! /bin/bash
(
    while : ; do
        wvdial
        sleep 10
    done
) &
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.