aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-09-12 19:06:33 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-09-12 19:10:28 +0200
commit8a6f6c5a16cb31866598884639e203c6071f0b34 (patch)
treef7690b0f5c30ac0c872d8f1471462e30cfd8208a
parent65d3cc77539c565215e067ff5447f6d1cbab21e4 (diff)
Install sample cfg file to /etc/osmocom
Change cfg file names so they don't overlap when installing different osmo-bts versions, and make systemd services look for correct new name. Remove unneeded duplicated EXTRA_DIST files from root dir Makefile.am Change-Id: I75fdd06cc52ce50628efb1f9b007d2e3926db27d
-rw-r--r--Makefile.am4
-rw-r--r--contrib/systemd/osmo-bts-lc15.service2
-rw-r--r--contrib/systemd/osmo-bts-sysmo.service2
-rw-r--r--contrib/systemd/osmo-bts-trx.service2
-rw-r--r--debian/osmo-bts-trx.install3
-rw-r--r--debian/osmo-bts-virtual.install3
-rw-r--r--doc/examples/Makefile.am18
-rw-r--r--doc/examples/litecell15/osmo-bts-lc15.cfg (renamed from doc/examples/litecell15/osmo-bts.cfg)0
-rw-r--r--doc/examples/octphy/osmo-bts-octphy.cfg (renamed from doc/examples/octphy/osmo-bts.cfg)0
-rw-r--r--doc/examples/sysmo/osmo-bts-sysmo.cfg (renamed from doc/examples/sysmo/osmo-bts.cfg)0
-rw-r--r--doc/examples/trx/osmo-bts-trx.cfg (renamed from doc/examples/trx/osmo-bts.cfg)0
-rw-r--r--doc/examples/virtual/osmo-bts-virtual.cfg (renamed from doc/examples/virtual/osmobts-virtual.cfg)0
12 files changed, 20 insertions, 14 deletions
diff --git a/Makefile.am b/Makefile.am
index b573aa87..5b49bb71 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,10 +7,6 @@ SUBDIRS = include src tests doc contrib
EXTRA_DIST = \
contrib/dump_docs.py contrib/screenrc-l1fwd \
contrib/l1fwd.init contrib/screenrc-sysmobts contrib/respawn.sh \
- doc/examples/sysmo/osmo-bts.cfg \
- doc/examples/sysmo/sysmobts-mgr.cfg \
- doc/examples/virtual/openbsc-virtual.cfg \
- doc/examples/virtual/osmobts-virtual.cfg \
git-version-gen .version \
README.md
diff --git a/contrib/systemd/osmo-bts-lc15.service b/contrib/systemd/osmo-bts-lc15.service
index 6aa9751f..90e7fc29 100644
--- a/contrib/systemd/osmo-bts-lc15.service
+++ b/contrib/systemd/osmo-bts-lc15.service
@@ -5,7 +5,7 @@ Description=osmo-bts for LC15 / sysmoBTS 2100
Type=simple
ExecStartPre=/bin/sh -c 'echo 1 > /sys/class/leds/usr0/brightness'
ExecStartPre=/bin/sh -c 'echo 1 > /sys/class/leds/usr1/brightness'
-ExecStart=/usr/bin/osmo-bts-lc15 -t 2 -s -c /etc/osmocom/osmo-bts.cfg -M
+ExecStart=/usr/bin/osmo-bts-lc15 -t 2 -s -c /etc/osmocom/osmo-bts-lc15.cfg -M
ExecStopPost=/bin/sh -c 'echo 1 > /sys/class/leds/usr0/brightness'
ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/usr1/brightness'
Restart=always
diff --git a/contrib/systemd/osmo-bts-sysmo.service b/contrib/systemd/osmo-bts-sysmo.service
index 65b1f00b..92558172 100644
--- a/contrib/systemd/osmo-bts-sysmo.service
+++ b/contrib/systemd/osmo-bts-sysmo.service
@@ -4,7 +4,7 @@ Description=osmo-bts for sysmocom sysmoBTS
[Service]
Type=simple
ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness'
-ExecStart=/usr/bin/osmo-bts-sysmo -s -c /etc/osmocom/osmo-bts.cfg -M
+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 '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
diff --git a/contrib/systemd/osmo-bts-trx.service b/contrib/systemd/osmo-bts-trx.service
index cea8719c..97c2b070 100644
--- a/contrib/systemd/osmo-bts-trx.service
+++ b/contrib/systemd/osmo-bts-trx.service
@@ -3,7 +3,7 @@ Description=Osmocom osmo-bts for osmo-trx
[Service]
Type=simple
-ExecStart=/usr/bin/osmo-bts-trx -s -c /etc/osmocom/osmo-bts.cfg
+ExecStart=/usr/bin/osmo-bts-trx -s -c /etc/osmocom/osmo-bts-trx.cfg
Restart=always
RestartSec=2
diff --git a/debian/osmo-bts-trx.install b/debian/osmo-bts-trx.install
index 2343d254..004a7ed0 100644
--- a/debian/osmo-bts-trx.install
+++ b/debian/osmo-bts-trx.install
@@ -1,4 +1,5 @@
+etc/osmocom/osmo-bts-trx.cfg
lib/systemd/system/osmo-bts-trx.service
usr/bin/osmo-bts-trx
-usr/share/doc/osmo-bts/examples/osmo-bts-trx/osmo-bts.cfg
+usr/share/doc/osmo-bts/examples/osmo-bts-trx/osmo-bts-trx.cfg
usr/share/doc/osmo-bts/examples/osmo-bts-trx/osmo-bts-trx-calypso.cfg
diff --git a/debian/osmo-bts-virtual.install b/debian/osmo-bts-virtual.install
index 0e6ca1b2..f4d988f4 100644
--- a/debian/osmo-bts-virtual.install
+++ b/debian/osmo-bts-virtual.install
@@ -1,5 +1,6 @@
+etc/osmocom/osmo-bts-virtual.cfg
lib/systemd/system/osmo-bts-virtual.service
usr/bin/osmo-bts-virtual
usr/bin/osmo-bts-omldummy
-usr/share/doc/osmo-bts/examples/osmo-bts-virtual/osmobts-virtual.cfg
+usr/share/doc/osmo-bts/examples/osmo-bts-virtual/osmo-bts-virtual.cfg
usr/share/doc/osmo-bts/examples/osmo-bts-virtual/openbsc-virtual.cfg
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
index e4be5fce..241f5794 100644
--- a/doc/examples/Makefile.am
+++ b/doc/examples/Makefile.am
@@ -1,38 +1,46 @@
+OSMOCONF_FILES = virtual/osmo-bts-virtual.cfg
doc_virtualdir = $(docdir)/examples/osmo-bts-virtual
doc_virtual_DATA = \
- virtual/osmobts-virtual.cfg \
+ virtual/osmo-bts-virtual.cfg \
virtual/openbsc-virtual.cfg
EXTRA_DIST = $(doc_virtual_DATA)
if ENABLE_SYSMOBTS
doc_sysmodir = $(docdir)/examples/osmo-bts-sysmo
doc_sysmo_DATA = \
- sysmo/osmo-bts.cfg \
+ sysmo/osmo-bts-sysmo.cfg \
sysmo/sysmobts-mgr.cfg
EXTRA_DIST += $(doc_sysmo_DATA)
+OSMOCONF_FILES += sysmo/osmo-bts-sysmo.cfg
endif
if ENABLE_TRX
doc_trxdir = $(docdir)/examples/osmo-bts-trx
doc_trx_DATA = \
- trx/osmo-bts.cfg \
+ trx/osmo-bts-trx.cfg \
trx/osmo-bts-trx-calypso.cfg
EXTRA_DIST += $(doc_trx_DATA)
+OSMOCONF_FILES += trx/osmo-bts-trx.cfg
endif
if ENABLE_OCTPHY
doc_octphydir = $(docdir)/examples/osmo-bts-octphy
doc_octphy_DATA = \
octphy/osmo-bts-trx2dsp1.cfg \
- octphy/osmo-bts.cfg
+ octphy/osmo-bts-octphy.cfg
EXTRA_DIST += $(doc_octphy_DATA)
+OSMOCONF_FILES += octphy/osmo-bts-octphy.cfg
endif
if ENABLE_LC15BTS
doc_lc15dir = $(docdir)/examples/osmo-bts-lc15
doc_lc15_DATA = \
- litecell15/osmo-bts.cfg \
+ litecell15/osmo-bts-lc15.cfg \
litecell15/lc15bts-mgr.cfg
EXTRA_DIST += $(doc_lc15_DATA)
+OSMOCONF_FILES += litecell15/osmo-bts-lc15.cfg
endif
+
+osmoconfdir = $(sysconfdir)/osmocom
+osmoconf_DATA = $(OSMOCONF_FILES)
diff --git a/doc/examples/litecell15/osmo-bts.cfg b/doc/examples/litecell15/osmo-bts-lc15.cfg
index f0bafe8d..f0bafe8d 100644
--- a/doc/examples/litecell15/osmo-bts.cfg
+++ b/doc/examples/litecell15/osmo-bts-lc15.cfg
diff --git a/doc/examples/octphy/osmo-bts.cfg b/doc/examples/octphy/osmo-bts-octphy.cfg
index c729d1a4..c729d1a4 100644
--- a/doc/examples/octphy/osmo-bts.cfg
+++ b/doc/examples/octphy/osmo-bts-octphy.cfg
diff --git a/doc/examples/sysmo/osmo-bts.cfg b/doc/examples/sysmo/osmo-bts-sysmo.cfg
index 87dfae00..87dfae00 100644
--- a/doc/examples/sysmo/osmo-bts.cfg
+++ b/doc/examples/sysmo/osmo-bts-sysmo.cfg
diff --git a/doc/examples/trx/osmo-bts.cfg b/doc/examples/trx/osmo-bts-trx.cfg
index 805d9296..805d9296 100644
--- a/doc/examples/trx/osmo-bts.cfg
+++ b/doc/examples/trx/osmo-bts-trx.cfg
diff --git a/doc/examples/virtual/osmobts-virtual.cfg b/doc/examples/virtual/osmo-bts-virtual.cfg
index fa22316b..fa22316b 100644
--- a/doc/examples/virtual/osmobts-virtual.cfg
+++ b/doc/examples/virtual/osmo-bts-virtual.cfg