diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/scripts/dahdi_span_config_hook | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/scripts/dahdi_span_config_hook b/contrib/scripts/dahdi_span_config_hook new file mode 100755 index 000000000..13f339511 --- /dev/null +++ b/contrib/scripts/dahdi_span_config_hook @@ -0,0 +1,32 @@ +#! /bin/sh + +# This script is intended to be called from +# /usr/share/dahdi/dahdi_span_config, which is is typically called from +# a udev hook script. +# +# Environment is set in +# http://git.asterisk.org/gitweb/?p=dahdi/tools.git;a=blob;f=hotplug/dahdi_span_config + +if [ "$ACTION" != 'add' ]; then + # Nothing to do here + exit 0 +fi + +# Add to asterisk +asterisk -rx "dahdi create channels $BASECHAN $ENDCHAN" +#! /bin/sh + +# This script is intended to be called from +# /usr/share/dahdi/dahdi_span_config, which is is typically called from +# a udev hook script. +# +# Environment is set in +# http://git.asterisk.org/gitweb/?p=dahdi/tools.git;a=blob;f=hotplug/dahdi_span_config + +if [ "$ACTION" != 'add' ]; then + # Nothing to do here + exit 0 +fi + +# Add to asterisk +asterisk -rx "dahdi create channels $BASECHAN $ENDCHAN" |