bkruse: branch 1.4 r1513 - in /branches/1.4: config/ config/scripts/ tools/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Sep 4 15:40:39 CDT 2007


Author: bkruse
Date: Tue Sep  4 15:40:38 2007
New Revision: 1513

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1513
Log:
Fixed the Makefile hacked introduced in rev 659 by me.
Now does things correctly, and uses ASTSBINDIR.
(which typically is /usr/sbin/)
Updated astman.js to not statically call
/sbin/[ztscan, zapscan]
but rather just let the system find the binaries
in the $PATH.
(closes issue #10581)
Also changed the way digital.html parsed ztscan.conf, so
it will not alert you the first time you see the page or
run the tool.

Modified:
    branches/1.4/config/digital.html
    branches/1.4/config/scripts/astman.js
    branches/1.4/tools/Makefile

Modified: branches/1.4/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/digital.html?view=diff&rev=1513&r1=1512&r2=1513
==============================================================================
--- branches/1.4/config/digital.html (original)
+++ branches/1.4/config/digital.html Tue Sep  4 15:40:38 2007
@@ -452,10 +452,13 @@
 
 function load_config_tool() { 
 	if(!config2json("ztscan.conf", 1, digitalparse)) {
-		alert("Have you properly installed ztscan to /sbin/ztscan?\n/etc/asterisk/ztscan.conf does not exist.");
+		alert("Have you properly installed ztscan?\n/etc/asterisk/ztscan.conf does not exist.");
 		_$('error_txt').style.display="";
 		_$('error_txt').innerHTML="<br><br>Problem Detecting/No Cards(or spans) Found!<br><br>  Error: No Config File";		
 		_$('tablecontainer').style.display="none";
+	} else {
+		/* Our config file was found....we can parse the options into widgets and _$('devices') */
+		parent.astmanEngine.config2list("ztscan.conf", _$('devices'), widgets, zt_cb);
 	}
 }
 
@@ -466,7 +469,6 @@
 	setTimeout("_$('status_message').style.display='none'", 5000);
 	_$('message_text').innerHTML = "Detecting Digital Cards ... (Beta)";
 	setWindowTitle("Digital Setup Wizard");
-	parent.astmanEngine.config2list("ztscan.conf", _$('devices'), widgets, zt_cb);
 	parent.loadscreen(this);
 	/* Give ztscan 4 seconds to detect and write to ztscan.conf */
 	parent.astmanEngine.run_tool(asterisk_guiZtscan, function(t) {

Modified: branches/1.4/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/scripts/astman.js?view=diff&rev=1513&r1=1512&r2=1513
==============================================================================
--- branches/1.4/config/scripts/astman.js (original)
+++ branches/1.4/config/scripts/astman.js Tue Sep  4 15:40:38 2007
@@ -32,8 +32,8 @@
 var asterisk_menusRecord_path = asterisk_Sounds_path + "record/";
 var asterisk_guiSysInfo = "sh " + asterisk_scriptsFolder + "gui_sysinfo" ;
 var asterisk_guiSysInfo_output = "./sysinfo_output.html";
-var asterisk_guiZapscan = "/sbin/zapscan.bin" ;
-var asterisk_guiZtscan = "/sbin/ztscan";
+var asterisk_guiZapscan = "zapscan.bin" ;
+var asterisk_guiZtscan = "ztscan";
 var asterisk_rawmanPath = "../../rawman" ;
 var asterisk_guiConfigFile = "guipreferences.conf"; // will be created in asterisk_configfolder, if the file does not exist 
 var asterisk_configfolder = "/etc/asterisk/";

Modified: branches/1.4/tools/Makefile
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/tools/Makefile?view=diff&rev=1513&r1=1512&r2=1513
==============================================================================
--- branches/1.4/tools/Makefile (original)
+++ branches/1.4/tools/Makefile Tue Sep  4 15:40:38 2007
@@ -33,10 +33,7 @@
 ifeq ($(PBX_ZAPTEL),1)
 	mkdir -p $(ASTSBINDIR)
 	$(INSTALL) -m 755 zapscan.bin $(ASTSBINDIR)
-	$(INSTALL) -m 755 zapscan.bin /sbin
 	$(INSTALL) -m 755 zapscan $(ASTSBINDIR)
-	$(INSTALL) -m 755 zapscan /sbin	
-	$(INSTALL) -m 755 ztscan /sbin	
 	$(INSTALL) -m 755 ztscan $(ASTSBINDIR)
 	
 endif




More information about the asterisk-gui-commits mailing list