summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am12
-rw-r--r--plugins/modem.conf41
2 files changed, 52 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 99371ae6..71b402b8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,6 +18,10 @@ local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS), \
if DATAFILES
+confdir = $(sysconfdir)/ofono
+
+conf_DATA =
+
dbusdir = @DBUS_DATADIR@
dbus_DATA = src/ofono.conf
@@ -84,6 +88,10 @@ builtin_sources += $(gatchat_sources) drivers/atmodem/at.h \
builtin_modules += modemconf
builtin_sources += plugins/modemconf.c
+if DATAFILES
+conf_DATA += plugins/modem.conf
+endif
+
builtin_sources += plugins/chat.h plugins/chat.c
builtin_modules += generic_at
@@ -151,7 +159,9 @@ test_files = test/test-manager test/test-modem test/test-voicecall \
test/monitor-ofono test/list-modems test/enable-modem \
test/list-operators
-EXTRA_DIST = src/genbuiltin src/ofono.conf $(doc_files) $(test_files)
+conf_files = src/ofono.conf plugins/modem.conf
+
+EXTRA_DIST = src/genbuiltin $(doc_files) $(test_files) $(conf_files)
dist_man_MANS = doc/ofonod.8
diff --git a/plugins/modem.conf b/plugins/modem.conf
new file mode 100644
index 00000000..0c1b1023
--- /dev/null
+++ b/plugins/modem.conf
@@ -0,0 +1,41 @@
+# This is a sample file for the static modem configuration
+#
+# It should be installed in your oFono system directory,
+# e.g. /etc/ofono/modem.conf
+#
+# Each group is parsed as a modem device
+# Each group shall contain the following keys:
+# Driver = <driver string>, e.g. generic_at, mbm, g1
+# Type = tcp | unix | tty
+# InitString = <init string to send to device>, e.g. ATZ
+#
+# If Type is tcp, the following keys are available:
+# Address = <valid IPv4 address format>
+#
+# If Type is unix:
+# Address = UNIX path, prefixed by x00 for anonymous paths
+#
+# If Type is tty:
+# Device = <device path>
+
+# Sample for using phone simulator
+#[phonesim]
+#Driver=generic_at
+#Type=tcp
+#Address=127.0.0.1
+#Port=12345
+
+#Sample for OpenMoko calypso
+#[calypso]
+#Driver=generic_at
+#Type=tty
+#Device=/dev/ttySAC0
+#InitString=AT+CFUN=1
+#TimeoutCommand=\r
+#TimeoutInterval=5
+
+#Sample for Android/HTC G1
+#[g1]
+#Driver=g1
+#Type=tty
+#Device=/dev/smd0