From c34425e3237639ab9923eb95e4a52952b1ed6955 Mon Sep 17 00:00:00 2001 From: Rich Brown Date: Wed, 27 Jan 2016 17:04:04 -0500 Subject: [PATCH] Display /etc/banner, /etc/openwrt_release files --- getstats.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/getstats.sh b/getstats.sh index 8aee263..b5b5d91 100755 --- a/getstats.sh +++ b/getstats.sh @@ -22,10 +22,17 @@ out_fqn=/tmp/openwrtstats.txt -echo -e "[date]" > ${out_fqn} +cat /etc/banner > ${out_fqn} +echo -e "\n" >> ${out_fqn} + +echo -e "[date]" >> ${out_fqn} date >> ${out_fqn} echo -e "\n" >> ${out_fqn} +echo -e "[/etc/openwrt_release]">> ${out_fqn} +cat /etc/openwrt_release >> ${out_fqn} +echo -e "\n" >> ${out_fqn} + echo -e "[uname -a]" >> ${out_fqn} echo $( uname -a ) >> ${out_fqn} echo -e "\n" >> ${out_fqn} @@ -64,7 +71,7 @@ SQM_DEBUG=1 SQM_VERBOSITY=8 2>> ${out_fqn} /etc/init.d/sqm stop 2>> ${out_fqn} echo -e "\n" 1>> ${out_fqn} -echo -e "[SQM start]" 1>> ${out_fqn} +echo -e "[SQM start]" 1>> ${out_fqn} SQM_DEBUG=1 SQM_VERBOSITY=8 2>> ${out_fqn} /etc/init.d/sqm start 2>> ${out_fqn} SQM_DEBUG=0 2>> ${out_fqn}