summaryrefslogtreecommitdiff
path: root/contrib/scripts/dahdi_span_config_hook
blob: 13f339511d636113bec5a142bec14a4be45c270e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"