fix URL in specfile - rm svn-keywords
[comgt.git] / sigmon
1 #
2 # sigmon - 3G/GPRS datacard signal strength monitor
3 #
4 if [ $# -eq 1 ]
5 then
6         if [ "$1" == '-?' ] 
7         then
8                 echo "Syntax:   sigmon"
9                 echo "Function: 3G/GPRS datacard signal strength monitor"
10                 echo "Options:  none"
11         else
12                 echo "Invalid option - $1"
13         fi
14         exit 1
15 else
16         if [ $# -gt 1 ]
17         then
18                 echo "Error: only one option permitted"
19                 exit 1
20         fi
21 fi
22
23 echo "Use Ctrl/C to terminate monitoring"
24
25 while true
26 do
27         gcom -d /dev/ttyUSB2 sig
28         sleep 5
29 done
30 #
31 #   sigmon - use gmon to continuously monitor signal strength
32 #   Copyright (C) 2005  Martin Gregorie
33 #
34 #   This program is free software; you can redistribute it and/or modify
35 #   it under the terms of the GNU General Public License as published by
36 #   the Free Software Foundation; either version 2 of the License, or
37 #   (at your option) any later version.
38 #
39 #    This program is distributed in the hope that it will be useful,
40 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
41 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42 #    GNU General Public License for more details.
43 #
44 #    You should have received a copy of the GNU General Public License
45 #    along with this program; if not, write to the Free Software
46 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
47 #
48 #    martin@gregorie.org
49 #
50