Display /etc/banner, /etc/openwrt_release files

This commit is contained in:
Rich Brown 2016-01-27 17:04:04 -05:00
parent 2b954eebd1
commit c34425e323

View file

@ -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}