Update default config
Rename default config to match the binary name and add config exampe.
Change-Id: Iabfc78c95e904af7372f10c195b2b979675d34f3
Related: SYS#2655
diff --git a/Makefile.am b/Makefile.am
index 9ad5947..5eb1cfb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS = doc
+
AM_CPPFLAGS = \
$(all_includes) \
-I$(top_srcdir) \
diff --git a/configure.ac b/configure.ac
index 7f5ae80..13082b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,4 +127,6 @@
AM_CONFIG_HEADER(config.h)
AC_OUTPUT(
+ doc/Makefile
+ doc/examples/Makefile
Makefile)
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..aee2d7b
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = examples
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
new file mode 100644
index 0000000..cf728a4
--- /dev/null
+++ b/doc/examples/Makefile.am
@@ -0,0 +1,7 @@
+examples_sysmondir = $(docdir)/examples/osmo-sysmon
+examples_sysmon_DATA = osmo-sysmon.cfg
+
+osmoconfdir = $(sysconfdir)/osmocom
+osmoconf_DATA = osmo-sysmon.cfg
+
+EXTRA_DIST = osmo-sysmon.cfg
diff --git a/doc/examples/osmo-sysmon.cfg b/doc/examples/osmo-sysmon.cfg
new file mode 100644
index 0000000..933df93
--- /dev/null
+++ b/doc/examples/osmo-sysmon.cfg
@@ -0,0 +1,5 @@
+ctrl-client bsc 127.0.0.1 4249
+ get-variable bts_connection_status
+ get-variable msc.0.connection_status
+netdev eth0
+netdev tun0
diff --git a/osysmon_main.c b/osysmon_main.c
index 98859ed..5983212 100644
--- a/osysmon_main.c
+++ b/osysmon_main.c
@@ -70,7 +70,7 @@
};
-static const char *config_file = "osysmon.cfg";
+static const char *config_file = "osmo-sysmon.cfg";
struct osysmon_state *g_oss;