From 674b54763cf42fc3f04d821be3e063313564f8f2 Mon Sep 17 00:00:00 2001 From: file Date: Thu, 17 May 2007 16:51:39 +0000 Subject: Merged revisions 2524 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.4 ........ r2524 | file | 2007-05-17 12:49:56 -0400 (Thu, 17 May 2007) | 2 lines Allow the fxotune config file to be specified instead of hardcoded. (issue #8444 reported by pupeno, patch by tzafrir) ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2525 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- fxotune.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fxotune.c b/fxotune.c index e2207ae..08c4454 100644 --- a/fxotune.c +++ b/fxotune.c @@ -52,6 +52,7 @@ static char *usage = " options : [-b ][-w ]\n" " [-n ][-l ][-m ]\n" " -v : more output (-vv, -vvv also)\n" +" -c \n" "\n" " - type of calibration\n" " (default 2, old method 1)\n" @@ -66,7 +67,10 @@ static char *usage = " - the device to perform waveform dump on\n" " (default 1)\n" " - -1 for multitone waveform, or frequency of\n" -" single tone (default -1)\n"; +" single tone (default -1)\n" +" - Alternative file to set from / calibrate to.\n" +" (Default: /etc/fxotune.conf)\n" +; #define OUT_OF_BOUNDS(x) ((x) < 0 || (x) > 255) @@ -920,6 +924,9 @@ int main (int argc , char **argv) dialstr = argv[++i]; } continue; + case 'c': + configfile = moreargs ? argv[++i] : configfile; + continue; case 'd': dodump = 1; continue; -- cgit v1.2.3