Hi,

You recently reported a bug [0] in Debian's sysfsutils package.  I
tested the init script, and it appears to work as intended.  I added
this line to /etc/sysfs.conf:

  devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand

and added two lines to /etc/init.d/sysfsutils:

   while read key val; do
+  echo setting $key = $val;
+  continue;
       if [ "$key" -a "$val" ]; then

Now, running /etc/init.d/sysfsutils start yields:

  $ sudo /etc/init.d/sysfsutils start
  Setting sysfs variables...setting 
devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
  done.

So, it may not be functioning as desired, but it is not failing for
the reason you gave.  The variables are visible within the while loop
(but not outside it, I guess).  (Well, this is true for me, at least:)

Can you confirm that there is a newline at the end of /etc/sysfs.conf?
The final line will not be `read` if there is none.

Justin

References

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=298296


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

Reply via email to