Created
December 31, 2011 04:31
-
-
Save pdeschen/1542884 to your computer and use it in GitHub Desktop.
Asterisk configuration exec script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -e /etc/asterisk/enabled/$1.conf ] ; then | |
echo "#include /etc/asterisk/enabled/$1.conf"; | |
fi | |
if [ -e /etc/asterisk/enabled/$1/ ] ; then | |
find /etc/asterisk/enabled/$1/ -name '*.conf' -exec echo "#include {}" \; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment