summaryrefslogtreecommitdiff
path: root/fxotune.c
diff options
context:
space:
mode:
Diffstat (limited to 'fxotune.c')
-rw-r--r--fxotune.c9
1 files changed, 8 insertions, 1 deletions
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 <device>][-w <waveform>]\n"
" [-n <dialstring>][-l <delaytosilence>][-m <silencegoodfor>]\n"
" -v : more output (-vv, -vvv also)\n"
+" -c <config_file>\n"
"\n"
" <calibtype> - type of calibration\n"
" (default 2, old method 1)\n"
@@ -66,7 +67,10 @@ static char *usage =
" <device> - the device to perform waveform dump on\n"
" (default 1)\n"
" <waveform> - -1 for multitone waveform, or frequency of\n"
-" single tone (default -1)\n";
+" single tone (default -1)\n"
+" <config_file> - 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;