#!/usr/bin/bash 
clean(){
	rmmod usbserial ppp_async ppp_deflate bsd_comp ppp_generic ;
	rmmod libusual zlib_deflate zlib_inflate slhc;
}

start(){
	sudo modprobe usbserial vendor=0x16d8 product=0x6803;
	modprobe ppp_generic;
	cd /dev/;
	ln -s ttyUSB0 modem;
}

case "$1" in
	'start')
		start ;;
	'clean')
		clean;;
	'restart')
		clean
		start;;
	*)
		echo "Uso: $0 start|clean";;
esac
