forked from AdanFormisano/DroneControlSystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·77 lines (64 loc) · 1.04 KB
/
run.sh
File metadata and controls
executable file
·77 lines (64 loc) · 1.04 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
# Termina tail esistenti
# pkill -f "tail -f ../log"
# if pgrep -F "tail -F ../log" > /dev/null; then
# pkill -F "tail -F ../log"
# fi
# pkill -f "less +F ../log"
# Altri sh che servono
source sh/utils.sh
source sh/log_manage.sh
source sh/syst_manage.sh
source sh/conf.sh
source sh/strings.sh
# Cleanup IPC processes
cleanup_ipc
get_DB
# Prompt DCS iniziale
init_msg
# Avvia Redis
manage_redis
# Crea cartelle log
mkdir_log
# Build DCS
build_dcs
# Avvia DCS
dcs_start_msg
start_dcs
# Stat-vars monitor
constants
# Sim avviata
sim_start_msg
# Premi per...
instr_msg
# Ciclo principale input utente
while true; do
read -n 1 -r key
case $key in
[d])
toggle_dcs
;;
[D])
toggle_dcsa_fast
;;
[Aa])
toggle_dcsa
;;
[Mm])
toggle_monitor
;;
[1-5])
toggle_single_mon $key
;;
[Ii])
toggle_help
;;
[Hh])
toggle_hide
;;
[Cc])
echo "$closing_message"
cleanup
;;
esac
done