Remove TCP Vegas support (ARM7)
[tomato.git] / release / src-rt-6.x.4708 / router / others / sysinfo-helper
blobe500e3be4d35a90dd8d53a27a86faba8f8589594
1 #!/bin/sh
3 a=`cat /proc/cpuinfo | grep BogoMIPS | head -1 | awk {' print $3'} | awk '{printf "%0.1f %s\n", $1/100}' | awk '{printf "%s\n", $1*50}'`
5 b=`cat /proc/cpuinfo | grep processor | wc -l`
7 if [ $b -le "1" ]; then
8 c="single"
9 else
10 c="dual"
13 d=`cat /proc/dmu/temperature | head -1 | awk '{ print substr($4,1,length($4)-2)}'`
14 if [ ! $d ]; then d="--"; fi
16 echo "cpu MHz : $a MHz ($c" > /tmp/sysinfo-helper
17 echo "cpu Temp : $d" >> /tmp/sysinfo-helper