diff options
Diffstat (limited to 'zaptel.init')
-rw-r--r-- | zaptel.init | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/zaptel.init b/zaptel.init index e067b4d..a0e5380 100644 --- a/zaptel.init +++ b/zaptel.init @@ -123,6 +123,13 @@ hpec_start() { 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. [ "${TELEPHONY}" = "yes" ] || exit 0 @@ -193,7 +200,7 @@ case "$1" in ;; 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=$? |