dahdi_span_config_hook 808 B

123456789101112131415161718192021222324252627282930313233
  1. #! /bin/sh
  2. # This script is intended to be called from
  3. # /usr/share/dahdi/dahdi_span_config, which is is typically called from
  4. # a udev hook script.
  5. #
  6. # Environment is set in
  7. # http://git.asterisk.org/gitweb/?p=dahdi/tools.git;a=blob;f=hotplug/dahdi_span_config
  8. if [ "$ACTION" != 'add' ]; then
  9. # Nothing to do here
  10. exit 0
  11. fi
  12. # Add to asterisk
  13. asterisk -rx "dahdi create channels $BASECHAN $ENDCHAN"
  14. #! /bin/sh
  15. # This script is intended to be called from
  16. # /usr/share/dahdi/dahdi_span_config, which is is typically called from
  17. # a udev hook script.
  18. #
  19. # Environment is set in
  20. # http://git.asterisk.org/gitweb/?p=dahdi/tools.git;a=blob;f=hotplug/dahdi_span_config
  21. if [ "$ACTION" != 'add' ]; then
  22. # Nothing to do here
  23. exit 0
  24. fi
  25. # Add to asterisk
  26. asterisk -rx "dahdi create channels $BASECHAN $ENDCHAN"