There is a global var that tells you whether you are connected via wlan or gprs, so you can use that to stop it from sending data when it's using GPRS: if [ "$ICD_CONNECTION_TYPE" != GPRS ]; then It could quite easily use GPRS and shouldn't use much bandwidth at all unless you use the tunnel.