mirror of
https://github.com/richb-hanover/OpenWrtScripts.git
synced 2026-03-30 10:44:32 +02:00
Display /etc/banner, /etc/openwrt_release files
This commit is contained in:
parent
2b954eebd1
commit
c34425e323
1 changed files with 9 additions and 2 deletions
11
getstats.sh
11
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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue