-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·65 lines (49 loc) · 1.39 KB
/
run.sh
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
#!/bin/bash
#a simple startup script, just to show/note some necessary preparations
#stop unwanted services
#sudo service apache2 stop
#sudo service nmbd stop
#sudo service smbd stop
#sudo service bluetooth stop
#sudo service cups stop
#sudo service mysql stop
#sudo service postgresql stop
#sudo service mysql stop
#sudo service tor stop
#sudo service polipo stop
#sudo service portmap stop
#sudo killall mediasrv
#sudo service network-manager stop
#sudo /etc/init.d/networking restart
#sudo ifup eth0
# necessary due to strange bug in gst_init() with LANG=de_AT.UTF-8
export LANG=C
# setup route for multicast
sudo route add -net 232.0.0.0 netmask 255.0.0.0 dev eth0
#sudo echo Y > /sys/module/usbcore/parameters/old_scheme_first
#sudo echo -1 >/sys/module/usbcore/parameters/autosuspend
#sudo killall gpsd
#start gpsd - if not runing
#GPSD_PID=$(pidof gpsd)
#GPSD_CMD="/usr/local/sbin/gpsd /dev/ttyUSB0"
#if [ "$GPSD_PID" == "" ]; then
# echo "no gpsd.. trying to start it"
# $GPSD_CMD
#else
# echo "gpsd is running"
#fi
if [ "$1" = "jp4" ]; then
./scripts/init-cam.sh jp4
else
./scripts/init-cam.sh
fi
# now run linescanner
while [ 1 == 1 ]; do
#wget -q -O /dev/null http://192.168.0.10/camogmgui/camogm_interface.php?cmd=start
if [ "$1" = "jp4" ]; then
./linescan --pre --gps --jp4
else
./linescan --gps
fi
#wget -q -O /dev/null http://192.168.0.10/camogmgui/camogm_interface.php?cmd=stop
done