pari: trunk r511 - /trunk/gui_configs/gui_sysinfo

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


Author: pari
Date: Wed Mar 28 00:46:58 2007
New Revision: 511

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

Modified:
    trunk/gui_configs/gui_sysinfo

Modified: trunk/gui_configs/gui_sysinfo
URL: http://svn.digium.com/view/asterisk-gui/trunk/gui_configs/gui_sysinfo?view=diff&rev=511&r1=510&r2=511
==============================================================================
--- trunk/gui_configs/gui_sysinfo (original)
+++ trunk/gui_configs/gui_sysinfo Wed Mar 28 00:46:58 2007
@@ -34,34 +34,18 @@
 
 /bin/echo "<div id=bkp_files>" >> $SYSINFO_OUTPUT 
 /bin/mkdir -p /var/lib/asterisk/gui_configbackups
-BKPFILES=`ls /var/lib/asterisk/gui_configbackups/`
-for i in $BKPFILES
-do
-/bin/echo "$i<BR>" >> $SYSINFO_OUTPUT 
-done
+/bin/ls /var/lib/asterisk/gui_configbackups/ >> $SYSINFO_OUTPUT
+/bin/echo "</div>" >> $SYSINFO_OUTPUT 
+
+/bin/echo "<div id=rec_files>" >> $SYSINFO_OUTPUT 
+/bin/mkdir -p /var/lib/asterisk/sounds/record
+/bin/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
+/bin/ls /var/lib/asterisk/sounds/ >> $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
-/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
-/bin/echo "</div>" >> $SYSINFO_OUTPUT 
-
-
-



More information about the asterisk-gui-commits mailing list