Move the SysmoBTS source directory
This commit is contained in:
parent
203f92084c
commit
89c7f9ad59
36 changed files with 10 additions and 10 deletions
24
modules/rhizo_base/files/SysmoBTS/osmo-bts.service
Normal file
24
modules/rhizo_base/files/SysmoBTS/osmo-bts.service
Normal file
|
@ -0,0 +1,24 @@
|
|||
[Unit]
|
||||
Description=osmo-bts for sysmocom sysmoBTS
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness'
|
||||
ExecStartPre=/bin/sh -c 'echo cpu0 > /sys/class/leds/online_led/trigger'
|
||||
ExecStart=/usr/bin/osmo-bts-sysmo -s -c /etc/osmocom/osmo-bts-sysmo.cfg -M
|
||||
ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness'
|
||||
ExecStopPost=/bin/sh -c 'echo none > /sys/class/leds/online_led/trigger'
|
||||
ExecStopPost=/bin/sh -c 'echo 1 > /sys/class/leds/online_led/brightness'
|
||||
ExecStopPost=/bin/sh -c 'cat /lib/firmware/sysmobts-v?.bit > /dev/fpgadl_par0 ; sleep 3s; cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0; sleep 1s'
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
RestartPreventExitStatus=1
|
||||
|
||||
# The msg queues must be read fast enough
|
||||
CPUSchedulingPolicy=rr
|
||||
CPUSchedulingPriority=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=sysmobts.service
|
||||
Alias=osmo-bts.service
|
Loading…
Add table
Add a link
Reference in a new issue