[zaptel-commits] tzafrir: branch 1.2 r2739 - /branches/1.2/zaptel.init
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Mon Jul 16 08:10:20 CDT 2007
Author: tzafrir
Date: Mon Jul 16 08:10:19 2007
New Revision: 2739
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2739
Log:
Remove automatic call to ztcfg -s from init.d script. Do dynamic spans
need it?
Modified:
branches/1.2/zaptel.init
Modified: branches/1.2/zaptel.init
URL: http://svn.digium.com/view/zaptel/branches/1.2/zaptel.init?view=diff&rev=2739&r1=2738&r2=2739
==============================================================================
--- branches/1.2/zaptel.init (original)
+++ branches/1.2/zaptel.init Mon Jul 16 08:10:19 2007
@@ -121,6 +121,13 @@
echo -n "."
echo " This can be caused if you had already run zaphpec_enable, or if your HPEC license is no longer valid."
fi
+}
+
+shutdown_dynamic() {
+ if ! grep -q ' ZTD/' /proc/* 2>/dev/null; then return; fi
+
+ # we should only get here if we have dynamic spans. Right?
+ $ZTCFG -s
}
# Check that telephony is up.
@@ -193,7 +200,7 @@
;;
stop)
# Unload drivers
- $ZTCFG -s
+ #shutdown_dynamic # FIXME: needs test from someone with dynamic spans
echo -n "Unloading zaptel hardware drivers:"
unload_module zaptel
RETVAL=$?
More information about the zaptel-commits
mailing list