bkruse: trunk r1514 - in /trunk: ./ config/ config/scripts/ tools/
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Tue Sep 4 15:41:09 CDT 2007
Author: bkruse
Date: Tue Sep 4 15:41:09 2007
New Revision: 1514
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1514
Log:
Merged revisions 1513 via svnmerge from
https://origsvn.digium.com/svn/asterisk-gui/branches/1.4
........
r1513 | bkruse | 2007-09-04 15:40:38 -0500 (Tue, 04 Sep 2007) | 12 lines
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:
trunk/ (props changed)
trunk/config/digital.html
trunk/config/scripts/astman.js
trunk/tools/Makefile
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-1.4-merged (original)
+++ branch-1.4-merged Tue Sep 4 15:41:09 2007
@@ -1,1 +1,1 @@
-/branches/1.4:1-1291,1293,1298-1300,1326,1332,1336-1338,1342,1346,1349,1356,1359,1362,1381,1384,1395,1399,1402,1413,1416,1426,1432,1435,1439,1442,1455,1458,1465,1471,1475,1478,1481,1488,1491,1494,1497,1500,1504,1507,1510
+/branches/1.4:1-1291,1293,1298-1300,1326,1332,1336-1338,1342,1346,1349,1356,1359,1362,1381,1384,1395,1399,1402,1413,1416,1426,1432,1435,1439,1442,1455,1458,1465,1471,1475,1478,1481,1488,1491,1494,1497,1500,1504,1507,1510,1513
Modified: trunk/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/digital.html?view=diff&rev=1514&r1=1513&r2=1514
==============================================================================
--- trunk/config/digital.html (original)
+++ trunk/config/digital.html Tue Sep 4 15:41:09 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: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=1514&r1=1513&r2=1514
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Tue Sep 4 15:41:09 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: trunk/tools/Makefile
URL: http://svn.digium.com/view/asterisk-gui/trunk/tools/Makefile?view=diff&rev=1514&r1=1513&r2=1514
==============================================================================
--- trunk/tools/Makefile (original)
+++ trunk/tools/Makefile Tue Sep 4 15:41:09 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