This little script helps me to establish reliably a UMTS connection on my ThinkPad T420s which contains a Ericsson F3507g Mobile Broadband Module. If that hardware fails to get a WWAN connection, the modem often needs a complete reset and reinitialization. Also, the network device needs some reset during that phase. This script takes care of that hassle. It retries as often as necessary until the UMTS connection is really established.
The wwan-helper is meant to run as hook script for the ifup / ifdown mechanism, but should also work on other networking systems.
If that script is also helpful for you, some small donation would be nice:
Make sure that the chat system utility is installed on your system:
If it isn't, the following command will install it on Debian:
aptitude install ppp
git clone https://github.com/vog/wwan-helper.git /etc/wwan-helper
APN=web.vodafone.de PIN=1234 ENFORCE_UMTS=no
Protect your configuration file:
chmod 600 /etc/wwan-helper/config
ln -s ../../wwan-helper/wwan-helper /etc/network/if-pre-up.d/wwan-helper ln -s ../../wwan-helper/wwan-helper /etc/network/if-post-down.d/wwan-helper
Note that this doesn't require any special settings in your
The following standard entry is all you need:
iface wwx0123456789ab inet dhcp
wwx0123456789ab with your actual device name.
On old systems, this may be
and on even older systems, this may be
If you have any trouble, you can disable wwan-helper simply via:
For debugging, you can execute the pre-up and post-down phases directly via:
IFACE=wwx0123456789ab PHASE=pre-up /etc/wwan-helper/wwan-helper IFACE=wwx0123456789ab PHASE=post-down /etc/wwan-helper/wwan-helper
For background information, please have a look at: