Preparing a modification to the scripts for the 3G connection, we saw that there’s no timeout in the 3Gconnect scripts.
Altough some people have this kind of connections without limits, most people would prefer to dial only on demand and also hang up after some time inactivity.
With this changes, the connection will go down after the inactivity time (if the connection is monitored it will never go down)
— /tmp/3Gconnect 2009-07-08 17:17:43.000000000 +0200
+++ 3Gconnect 2009-07-06 13:52:20.000000000 +0200
@@ -42,6 +42,8 @@
crtscts
modem
noauth
+demand
+idle 300
$DEFAULTROUTE
connect “$SCRIPTS/chat.sh”
unit $UNIT
This is previous to another patch to make a additional option of the interface so you can choose whether you want to monitor it or you don’t.