Package: cpufrequtils
Version: 002-2
Severity: wishlist
Tags: patch

Dear Mattia,

the subject says it all - at least bash will produce an error if
MIN_SPEED is set to "1GHz" due to the numerical test. The simple
solution is to compare against the string "0" instead of against the
value in /etc/init.d/cpufrequtils.

Best regards,
Bernd

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: [EMAIL PROTECTED], LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages cpufrequtils depends on:
ii  libc6                        2.3.6.ds1-6 GNU C Library: Shared libraries
ii  libcpufreq0                  002-2       shared library to deal with the cp
ii  lsb-base                     3.1-17      Linux Standard Base 3.1 init scrip

cpufrequtils recommends no packages.

-- no debconf information


*** /etc/init.d/cpufrequtils    2006/10/12 09:53:38     1.1
--- /etc/init.d/cpufrequtils    2006/10/12 09:53:52
***************
*** 31,41 ****
  # if not enabled then exit gracefully
  [ "$ENABLE" = "true" ] || exit 0
  
! if [ $MAX_SPEED -gt 0 ] ; then
        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --max $MAX_SPEED"
  fi
  
! if [ $MIN_SPEED -gt 0 ] ; then
        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --min $MIN_SPEED"
  fi
  
--- 31,41 ----
  # if not enabled then exit gracefully
  [ "$ENABLE" = "true" ] || exit 0
  
! if [ $MAX_SPEED != '0' ] ; then
        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --max $MAX_SPEED"
  fi
  
! if [ $MIN_SPEED != '0' ] ; then
        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --min $MIN_SPEED"
  fi
  


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to