3gdongle-disconnect.sh

This script allows to terminate properly a 3G Dongle connection while using modems produced by DLink, Huawei or Qualcomm (refer to 3gdongle-connect.sh script)

#!/bin/bash
if [[ -s /root/dlink.txt ]]; then
	sudo killall wvdial
fi

if [[ -s /root/qualcomm.txt ]]; then
        sudo killall wvdial
fi
if [[ -s /root/huawei.txt ]]; then
	cd /usr/bin/modem3g
	./sakis3g disconnect
fi