diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-09-16 14:55:04 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-09-16 14:55:04 +0000 |
commit | ecc65d80b45261573e0ee298de60da0ecb41fa28 (patch) | |
tree | 988dfcac4a31968f9f75a6d76335a89441fb540c /zaptel.init | |
parent | 8be21bc8a866aada4b477af34b6d891df07b68c4 (diff) |
* Run fxotune automatically on startup.
* Make fxotune -s less verbose by default so it won't make noise
for the init.d script.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3045 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.init')
-rw-r--r-- | zaptel.init | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zaptel.init b/zaptel.init index a7ccc9d..3a18178 100644 --- a/zaptel.init +++ b/zaptel.init @@ -16,6 +16,8 @@ initdir=/etc/init.d ZTCFG=/sbin/ztcfg ZTCFG_CMD="$ZTCFG" # e.g: for a custom zaptel.conf location +FXOTUNE=/sbin/fxotune + # The default syncer Astribank. Usually set automatically to a sane # value by xpp_sync(1) if you have an Astribank. You can set this to an # explicit Astribank (e.g: 01). @@ -192,6 +194,11 @@ case "$1" in echo "No functioning zap hardware found in /proc/zaptel, loading ztdummy" modprobe ztdummy 2> /dev/null fi + + if [ -x "$FXOTUNE" ] && [ -r /etc/fxotune.conf ]; then + $FXOTUNE -s + fi + if [ $system = debian ]; then echo -n "Running ztcfg: " $ZTCFG_CMD 2> /dev/null && echo -n "done" |