From e555445f2392ec9559de03f519d13541163df049 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 2 Sep 2009 15:18:10 -0700 Subject: [PATCH] Add example for modem.conf and install it if requested --- Makefile.am | 12 +++++++++++- plugins/modem.conf | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 plugins/modem.conf 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 = , e.g. generic_at, mbm, g1 +# Type = tcp | unix | tty +# InitString = , e.g. ATZ +# +# If Type is tcp, the following keys are available: +# Address = +# +# If Type is unix: +# Address = UNIX path, prefixed by x00 for anonymous paths +# +# If Type is tty: +# Device = + +# 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