markster: trunk r108 - /trunk/tools/zapscan
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Thu Nov 2 22:23:52 MST 2006
Author: markster
Date: Thu Nov 2 23:23:52 2006
New Revision: 108
URL: http://svn.digium.com/view/asterisk-gui?rev=108&view=rev
Log:
Warn user that it's an automatically created file...
Modified:
trunk/tools/zapscan
Modified: trunk/tools/zapscan
URL: http://svn.digium.com/view/asterisk-gui/trunk/tools/zapscan?rev=108&r1=107&r2=108&view=diff
==============================================================================
--- trunk/tools/zapscan (original)
+++ trunk/tools/zapscan Thu Nov 2 23:23:52 2006
@@ -2,8 +2,8 @@
if [ -f /etc/zaptel.conf.zapscan ] && [ -f /etc/asterisk/zapata.conf.zapscan ]; then
rm -f /etc/zaptel.conf
rm -f /etc/asterisk/zapata.conf
- cp -f /etc/zaptel.conf.zapscan /etc/zaptel.conf
- cp -f /etc/asterisk/zapata.conf.zapscan /etc/asterisk/zapata.conf
+ ( echo "# Created by zapscan -- edit zaptel.conf.zapscan instead" ; cat /etc/zaptel.conf.zapscan ) > /etc/zaptel.conf
+ ( echo "; Created by zapscan -- edit zapata.conf.zapscan instead" ; cat /etc/asterisk/zapata.conf.zapscan ) > /etc/asterisk/zapata.conf
rm -f /etc/asterisk/zapscan.conf
echo -n "Scanning for zaptel devices..."
if /sbin/zapscan.bin; then
More information about the asterisk-gui-commits
mailing list