pari: branch appliance r415 - /branches/appliance/config/gui_sysinfo

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon Mar 12 11:34:57 MST 2007


Author: pari
Date: Mon Mar 12 13:34:57 2007
New Revision: 415

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=415
Log:
compact flash status

Modified:
    branches/appliance/config/gui_sysinfo

Modified: branches/appliance/config/gui_sysinfo
URL: http://svn.digium.com/view/asterisk-gui/branches/appliance/config/gui_sysinfo?view=diff&rev=415&r1=414&r2=415
==============================================================================
--- branches/appliance/config/gui_sysinfo (original)
+++ branches/appliance/config/gui_sysinfo Mon Mar 12 13:34:57 2007
@@ -22,3 +22,11 @@
                         
 MEMORYUSAGE=`free`
 /bin/echo "<div id=si_free>$MEMORYUSAGE</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo.html
+
+cfstatus=`mount | grep "\/dev\/hda1"`
+if [ -n "$cfstatus" ]
+then
+/bin/echo "<div id=cf_status>1</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo.html
+else
+/bin/echo "<div id=cf_status>0</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo.html
+fi



More information about the asterisk-gui-commits mailing list