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