pari: branch asterisknow r524 - in /branches/asterisknow: ./
gui_configs/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed Mar 28 22:20:37 MST 2007
Author: pari
Date: Thu Mar 29 00:20:37 2007
New Revision: 524
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=524
Log:
Merged revisions 502 via svnmerge from
https://origsvn.digium.com/svn/asterisk-gui/trunk
........
r502 | pari | 2007-03-27 16:51:21 -0500 (Tue, 27 Mar 2007) | 1 line
cleanup gui_sysinfo
........
Modified:
branches/asterisknow/ (props changed)
branches/asterisknow/gui_configs/gui_sysinfo
Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Thu Mar 29 00:20:37 2007
@@ -1,1 +1,1 @@
-/trunk:1-448,501
+/trunk:1-448,501-502
Modified: branches/asterisknow/gui_configs/gui_sysinfo
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/gui_configs/gui_sysinfo?view=diff&rev=524&r1=523&r2=524
==============================================================================
--- branches/asterisknow/gui_configs/gui_sysinfo (original)
+++ branches/asterisknow/gui_configs/gui_sysinfo Thu Mar 29 00:20:37 2007
@@ -1,65 +1,67 @@
#!/bin/sh
+SYSINFO_OUTPUT="/var/lib/asterisk/static-http/config/sysinfo_output.html"
+
UNAME="`uname -a`"
-/bin/echo "<div id=si_uname>$UNAME</div>" > /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "<div id=si_uname>$UNAME</div>" > $SYSINFO_OUTPUT
UPTIME="`uptime`"
-/bin/echo "<div id=si_uptime>$UPTIME</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "<div id=si_uptime>$UPTIME</div>" >> $SYSINFO_OUTPUT
ASTERISK="`/usr/sbin/asterisk -V`"
-/bin/echo "<div id=si_astver>$ASTERISK</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "<div id=si_astver>$ASTERISK</div>" >> $SYSINFO_OUTPUT
TODAY="`date`"
-/bin/echo "<div id=si_date>$TODAY</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "<div id=si_date>$TODAY</div>" >> $SYSINFO_OUTPUT
HOSTNAME="`hostname -f`"
-/bin/echo "<div id=si_hostname>$HOSTNAME</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "<div id=si_hostname>$HOSTNAME</div>" >> $SYSINFO_OUTPUT
IFCONFIG=`ifconfig`
-/bin/echo "<div id=si_ifconfig><pre>$IFCONFIG</pre></div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "<div id=si_ifconfig><pre>$IFCONFIG</pre></div>" >> $SYSINFO_OUTPUT
DISKUSAGE=`df -h`
-/bin/echo "<div id=si_du><pre>$DISKUSAGE</pre></div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "<div id=si_du><pre>$DISKUSAGE</pre></div>" >> $SYSINFO_OUTPUT
MEMORYUSAGE=`free`
-/bin/echo "<div id=si_free><pre>$MEMORYUSAGE</pre></div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "<div id=si_free><pre>$MEMORYUSAGE</pre></div>" >> $SYSINFO_OUTPUT
THISMONTH=`/bin/date +%b`
THISDAY=`/bin/date +%d`
THIS_DAY=`/bin/date +%_d`
-/bin/grep /var/log/asterisk/messages -e "$THISMONTH\( $THISDAY\| $THIS_DAY\)" > /var/lib/asterisk/static-http/config/bkps/today_log.html
+/bin/grep /var/log/asterisk/messages -e "$THISMONTH\( $THISDAY\| $THIS_DAY\)" > /var/lib/asterisk/static-http/config/today_log.html
-/bin/echo "<div id=bkp_files>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/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>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "$i<BR>" >> $SYSINFO_OUTPUT
done
-/bin/echo "</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "</div>" >> $SYSINFO_OUTPUT
-/bin/echo "<div id=rec_files>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/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>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "$i<BR>" >> $SYSINFO_OUTPUT
done
-/bin/echo "</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "</div>" >> $SYSINFO_OUTPUT
-/bin/echo "<div id=sound_files>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/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>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "$i<BR>" >> $SYSINFO_OUTPUT
done
-/bin/echo "</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo_output.html
+/bin/echo "</div>" >> $SYSINFO_OUTPUT
More information about the asterisk-gui-commits
mailing list