forked from waggle-sensor/waggle_image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·43 lines (27 loc) · 885 Bytes
/
configure
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
#!/bin/bash
set -e
./install_dependencies.sh
export current_dir="$(pwd)"
if [ ! -e ${current_dir}/scripts/heartbeat.sh ] ; then
print "heartbeat.sh not found"
exit 1
fi
set -x
#mkdir -p /etc/supervisor/conf.d/
mkdir -p /var/log/waggle/
#ln -sf ${current_dir}/supervisor/heartbeat.conf /etc/supervisor/conf.d/heartbeat.conf
rm -f /etc/supervisor/conf.d/heartbeat.conf
# copy upstart scripts
cp ${current_dir}/upstart/waggle-* /etc/init/
rm -f ${current_dir}/upstart/waggle_*
ln -sf ${current_dir}/scripts/waggle-service.py /usr/bin/waggle-service
cp ${current_dir}/bash_completion/waggle-service /etc/bash_completion.d/
cd ${current_dir}/device_rules/atmel_boards
./install.sh
cd ${current_dir}/device_rules/wwan_modems
./install.sh
set +x
echo "run: udevadm control --reload-rules"
echo " udevadm trigger --subsystem-match=tty --action=add"
echo ""
echo "done"