1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
$NetBSD: patch-aa,v 1.1.1.1 2003/10/04 20:51:18 jschauma Exp $
--- src/mgpspoint.orig 2003-05-19 14:56:49.000000000 -0400
+++ src/mgpspoint 2003-10-04 15:33:45.000000000 -0400
@@ -1,4 +1,5 @@
-#!/bin/bash
+#!/bin/sh
+set -x
@@ -10,7 +11,7 @@
GPSPOINT=$(which gpspoint);
fi
-if [$GPSPORT=""]; then
+if [ $GPSPORT="" ]; then
GPSPORT=/dev/gps
fi
@@ -19,7 +20,7 @@
fi
tempfile=`tempfile -p GPSPT 2>/dev/null` || tempfile=/tmp/test$$
-trap "rm -f $tempfile" 0 1 2 5 15
+#trap "rm -f $tempfile" 0 1 2 5 15
WAYPOINTS=true;
ROUTES=false;
@@ -28,7 +29,7 @@
############################################################# main menu
QUIT=0;
while [ $QUIT = 0 ]; do
- $DIALOG --clear --nocancel --title "mgpspoint - main" \
+ $DIALOG --clear --title "mgpspoint - main" \
--menu "Welcome to menu for gpspoint. Mayby check settings first\
and try info afterwards. Have fun. " 16 51 8 \
"about" "" \
@@ -81,7 +82,7 @@
FILE=$(date +%y-%m-%d_somegpsdata.gpd);
while $DOWNLOADMENU ; do
DOWNLOAD=true;
- $DIALOG --title "mgpspoint - download" --clear --nocancel --menu "" 15 50 10 \
+ $DIALOG --title "mgpspoint - download" --clear --menu "" 15 50 10 \
"continue" ""\
"waypoints" "$WAYPOINTS" \
"routes" "$ROUTES" \
@@ -138,7 +139,7 @@
FILE=$(date +%y-%m-%d_somegpsdata.gpd);
while $UPLOADMENU ; do
UPLOAD=true;
- $DIALOG --title "mgpspoint - UPload" --clear --nocancel --menu "" 15 50 10 \
+ $DIALOG --title "mgpspoint - UPload" --clear --menu "" 15 50 10 \
"continue" ""\
"waypoints" "$WAYPOINTS" \
"routes" "$ROUTES" \
@@ -192,7 +193,7 @@
settings) ####################################################### settings
QUITSETTINGS=0;
while [ $QUITSETTINGS = 0 ]; do
- $DIALOG --clear --nocancel --title "mgpspoint - settings" \
+ $DIALOG --clear --title "mgpspoint - settings" \
--menu "choose:" 16 51 8 \
"back" ""\
"GPSPOINT" "$GPSPOINT"\
|