pari: branch aadk r500 - in /branches/aadk/config: gui_sysinfo menus.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue Mar 27 12:22:37 MST 2007


Author: pari
Date: Tue Mar 27 14:22:36 2007
New Revision: 500

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=500
Log:
faster way of listing files

Modified:
    branches/aadk/config/gui_sysinfo
    branches/aadk/config/menus.html

Modified: branches/aadk/config/gui_sysinfo
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/gui_sysinfo?view=diff&rev=500&r1=499&r2=500
==============================================================================
--- branches/aadk/config/gui_sysinfo (original)
+++ branches/aadk/config/gui_sysinfo Tue Mar 27 14:22:36 2007
@@ -41,33 +41,17 @@
 /bin/cat /sys/bus/i2c/devices/0-004a/temp1_input >> $SYSINFO_OUTPUT
 /bin/echo "</div>" >> $SYSINFO_OUTPUT
 
-
 /bin/echo "<div id=bkp_files>" >> $SYSINFO_OUTPUT
-BKPFILES=`ls /var/lib/asterisk/sounds/backups/`
-for i in $BKPFILES
-do
-/bin/echo "$i<BR>" >> $SYSINFO_OUTPUT
-done
+ls /var/lib/asterisk/sounds/backups/ >> $SYSINFO_OUTPUT
 /bin/echo "</div>" >> $SYSINFO_OUTPUT
-
-
 
 /bin/echo "<div id=rec_files>" >> $SYSINFO_OUTPUT
 /bin/mkdir -p /var/lib/asterisk/sounds/record
-RECFILES=`ls /var/lib/asterisk/sounds/record/`
-for i in $RECFILES
-do
-/bin/echo "$i<BR>" >> $SYSINFO_OUTPUT
-done
+ls /var/lib/asterisk/sounds/record/ >> $SYSINFO_OUTPUT
 /bin/echo "</div>" >> $SYSINFO_OUTPUT
-
-
 
 /bin/echo "<div id=sound_files>" >> $SYSINFO_OUTPUT
 /bin/mkdir -p /var/lib/asterisk/sounds
-SNDFILES=`ls /var/lib/asterisk/sounds/`
-for i in $SNDFILES
-do
-/bin/echo "$i<BR>" >> $SYSINFO_OUTPUT
-done
+ls /var/lib/asterisk/sounds/ >> $SYSINFO_OUTPUT
 /bin/echo "</div>" >> $SYSINFO_OUTPUT
+

Modified: branches/aadk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/menus.html?view=diff&rev=500&r1=499&r2=500
==============================================================================
--- branches/aadk/config/menus.html (original)
+++ branches/aadk/config/menus.html Tue Mar 27 14:22:36 2007
@@ -964,7 +964,7 @@
 			_$('sysinfohtml').innerHTML = originalRequest.responseText;
 			// Add Default sound files to the list of sound files
 			var j = _$('sound_files').innerHTML ;
-			var sndfiles = j.split("<br>") ;
+			var sndfiles = j.split("\n") ;
 			var New_OPTION = document.createElement('option');
 			New_OPTION.text = "Default Sounds"  ;
 			New_OPTION.value = ""  ;
@@ -1204,4 +1204,4 @@
 </table>
 </div>
 <div id="sysinfohtml" style="display:none"></div>
-</body>
+</body>



More information about the asterisk-gui-commits mailing list