mirror of git://git.sysmocom.de/ofono
Add example for modem.conf and install it if requested
This commit is contained in:
parent
24d1d0ee16
commit
e555445f23
12
Makefile.am
12
Makefile.am
|
@ -18,6 +18,10 @@ local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS), \
|
||||||
|
|
||||||
|
|
||||||
if DATAFILES
|
if DATAFILES
|
||||||
|
confdir = $(sysconfdir)/ofono
|
||||||
|
|
||||||
|
conf_DATA =
|
||||||
|
|
||||||
dbusdir = @DBUS_DATADIR@
|
dbusdir = @DBUS_DATADIR@
|
||||||
|
|
||||||
dbus_DATA = src/ofono.conf
|
dbus_DATA = src/ofono.conf
|
||||||
|
@ -84,6 +88,10 @@ builtin_sources += $(gatchat_sources) drivers/atmodem/at.h \
|
||||||
builtin_modules += modemconf
|
builtin_modules += modemconf
|
||||||
builtin_sources += plugins/modemconf.c
|
builtin_sources += plugins/modemconf.c
|
||||||
|
|
||||||
|
if DATAFILES
|
||||||
|
conf_DATA += plugins/modem.conf
|
||||||
|
endif
|
||||||
|
|
||||||
builtin_sources += plugins/chat.h plugins/chat.c
|
builtin_sources += plugins/chat.h plugins/chat.c
|
||||||
|
|
||||||
builtin_modules += generic_at
|
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/monitor-ofono test/list-modems test/enable-modem \
|
||||||
test/list-operators
|
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
|
dist_man_MANS = doc/ofonod.8
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue