From: Enrico Zini Date: Sat, 27 Mar 2010 15:06:19 +0000 (+0000) Subject: Work with frameworkd without a config file X-Git-Url: https://git.toastfreeware.priv.at/gregoa/zavai.git/commitdiff_plain/f4e77ca4a10f6f457386ee4c11b8be3e727183e4?hp=d3442f8784142358b744838e8d3631d59ff7cee5 Work with frameworkd without a config file --- diff --git a/hooks/gsm b/hooks/gsm index dacad06..849ad4c 100755 --- a/hooks/gsm +++ b/hooks/gsm @@ -1,5 +1,20 @@ #!/bin/sh +make_default_conf() { + cat > ~/.frameworkd.conf << EOT +[frameworkd] +log_to=file +log_destination=/tmp/frameworkd.log + +[ogsmd] +log_level=INFO +modemtype = ti_calypso +ti_calypso_deep_sleep = adaptive +ti_calypso_dsp_mode = aec+nr +ti_calypso_muxer = fso-abyss +EOT +} + case "$1" in # At the start of zavai status) @@ -14,6 +29,9 @@ case "$1" in run) if [ -x /usr/bin/frameworkd ] then + # Make default config if missing + test -e ~/.frameworkd.conf || make_default_conf + # Start frameworkd for GSM services only exec /usr/bin/frameworkd -s ogsmd > /tmp/zavai-frameworkd.log 2>&1 else