Skip to content

Instantly share code, notes, and snippets.

@pdeschen
Created December 31, 2011 04:31
Show Gist options
  • Save pdeschen/1542884 to your computer and use it in GitHub Desktop.
Save pdeschen/1542884 to your computer and use it in GitHub Desktop.
Asterisk configuration exec script
#!/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