forked from opentechinstitute/commotion-openbts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrc.local
More file actions
53 lines (39 loc) · 1.25 KB
/
rc.local
File metadata and controls
53 lines (39 loc) · 1.25 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
#!/bin/sh -e
[ -d /home/openbts/openbts ] || exit 1
PATH=$PATH:/usr/local/bin:/usr/local/sbin
# start olsrd
olsrd
# this is for asterisk call record data, probably don't need this
if [ ! -e /var/log/asterisk/cdr-csv ]; then
mkdir -p /var/log/asterisk/cdr-csv
fi
# start asterisk
asterisk
# create the tmpfs /var/run directory
if [ ! -e /var/run/OpenBTS ]; then
mkdir /var/run/OpenBTS
fi
# not needed unless you enable Radio Resource LCS (Location Service) Protocol for OpenBTS
if [ ! -e /var/run/rrlp ]; then
mkdir /var/run/rrlp
chmod 777 /var/run/rrlp
fi
# This script assumes that the following are installed in /OpenBTS:
# * OpenBTS
# * Transceiver
# * ezusb.ihx
# * fpga.rbf
# * runloop.sh for OpenBTS.
# start OpenBTS
cd /home/openbts/openbts/openbts/trunk/apps ; sudo screen -S OpenBTS -d -m ./runloop.OpenBTS.sh
# This script assumes that the following are installed in /smqueue:
# * smqueue
# * smqueue.db
# * runloop.sh for smqueue
# start smqueue
#cd /OpenBTS ; sudo screen -S smqueue -d -m ./runloop.smqueue.sh
# start the subscriber registry
cd /home/openbts/openbts/subscriberRegistry/trunk ; sudo screen -S sipauth -d -m ./runloop.sipauthserve.sh
# start Serval
/home/openbts/serval-dna/servald start
exit 0