diff options
Diffstat (limited to 'xpp/astribank_hook')
-rwxr-xr-x | xpp/astribank_hook | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xpp/astribank_hook b/xpp/astribank_hook index 8c5bea8..dc55d14 100755 --- a/xpp/astribank_hook +++ b/xpp/astribank_hook @@ -29,7 +29,11 @@ fi export XPPORDER_CONF="$dahdi_conf/xpp_order" if [ ! -r "$XPPORDER_CONF" ]; then - echo "Skip($ACTION): No '$XPPORDER_CONF'" | $LOGGER + ( + echo "Skip($ACTION): No '$XPPORDER_CONF'" + echo "Removing uneeded startup semaphore" + astribank_is_starting -v -r 2>&1 + ) 2>&1 | $LOGGER exit 0 fi export DAHDI_CFG_CMD="dahdi_cfg -c $dahdi_conf/system.conf" @@ -73,6 +77,9 @@ start_dahdi() { if [ -x "$dir/twinstar_hook" ]; then "$dir/twinstar_hook" fi + # Finished astribanks + echo "Removing semaphore" + astribank_is_starting -v -r } case "$ACTION" in |