pari: branch aadk r708 - /branches/aadk/config/flashupdate.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed Apr 18 14:37:14 MST 2007
Author: pari
Date: Wed Apr 18 16:37:13 2007
New Revision: 708
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=708
Log:
also check whether the uploads path is defined properly in post_mappings
Modified:
branches/aadk/config/flashupdate.html
Modified: branches/aadk/config/flashupdate.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/flashupdate.html?view=diff&rev=708&r1=707&r2=708
==============================================================================
--- branches/aadk/config/flashupdate.html (original)
+++ branches/aadk/config/flashupdate.html Wed Apr 18 16:37:13 2007
@@ -25,6 +25,7 @@
<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
<script>
var uImage_filename;
+var uimage_uploadpath = "/ramfs/var/lib/asterisk/sounds/uploads";
function execute_applyuimage(){
gui_feedback('Upgrading firmware','blue', 30000 );
@@ -55,7 +56,9 @@
for( var d in c ){
if ( c.hasOwnProperty(d) && d == 'post_mappings' ) {
- ispmdefined = 1;
+ if ( c[d]['uploads'] == uimage_uploadpath ){
+ ispmdefined = 1;
+ }
}
}
@@ -71,7 +74,7 @@
_$('sysinfohtml').innerHTML = originalRequest.responseText;
parent.loadscreen(this);
if( $('cf_status').innerHTML == "1"){ // if C.F is mounted, created an uploads folder
- parent.astmanEngine.run_tool("mkdir -p /var/lib/asterisk/sounds/uploads", callback = function() {});
+ parent.astmanEngine.run_tool("mkdir -p " + uimage_uploadpath, callback = function() {});
}else{ // C.F not mounted
_$('tdupload').style.display="none";
}
More information about the asterisk-gui-commits
mailing list