bin/cpu-freq: fix for powerpc

This commit is contained in:
Dustin Kirkland 2009-04-09 11:05:53 -07:00
commit 3adcfac0db
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
mhz=`grep -m 1 "^cpu MHz" /proc/cpuinfo | awk -F"[:.]" '{print $2}'` || mhz=`grep -m 1 "^clock" /proc/cpuinfo | awk -F"[:.]" '{print $2}'`
mhz=`egrep -m 1 "^cpu MHz|^clock" /proc/cpuinfo | awk -F"[:.]" '{print $2}'`
if [ $mhz -ge 1000 ]; then
speed=$(echo $mhz | awk '{ printf "%.1f", $1 / 1000 }')

4
debian/changelog vendored
View file

@ -1,8 +1,8 @@
screen-profiles (1.45) unreleased; urgency=low
* UNRELEASED
* bin/cpu-freq: fix for powerpc
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 08 Apr 2009 15:07:16 -0700
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 09 Apr 2009 11:05:35 -0700
screen-profiles (1.44-0ubuntu1) jaunty; urgency=low