pari: branch pari/dahdi_support r4344 - /team/pari/dahdi_support/scripts/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Dec 10 18:57:39 CST 2008


Author: pari
Date: Wed Dec 10 18:57:39 2008
New Revision: 4344

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4344
Log:

 write to dahdi/system.conf or zaptel.conf accordingly



Modified:
    team/pari/dahdi_support/scripts/editzap.sh

Modified: team/pari/dahdi_support/scripts/editzap.sh
URL: http://svn.digium.com/view/asterisk-gui/team/pari/dahdi_support/scripts/editzap.sh?view=diff&rev=4344&r1=4343&r2=4344
==============================================================================
--- team/pari/dahdi_support/scripts/editzap.sh (original)
+++ team/pari/dahdi_support/scripts/editzap.sh Wed Dec 10 18:57:39 2008
@@ -7,7 +7,14 @@
 
 # Quick script for applying zaptel settings from the GUI.
 
-ZAPCONF="/etc/zaptel.conf"
+if [ -e /dev/zap ]; then
+	ZAPCONF="/etc/zaptel.conf"
+fi
+
+if [ -e /dev/dahdi ]; then
+	ZAPCONF="/etc/dahdi/system.conf"
+fi
+
 FILENAME="/etc/asterisk/applyzap.conf"
 grep -v '\;' ${FILENAME} | sed 's/\[general\]//g' > ${ZAPCONF}
 




More information about the asterisk-gui-commits mailing list