Bug#298296: sysfsutils bug

2005-03-07 Thread Justin Pryzby
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]



Bug#298296: sysfsutils bug

2005-03-07 Thread manu
Le Lundi 7 Mars 2005 20:40, Justin Pryzby a écrit :
 Hi,

Hi,

 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:)
that's true, sorry.

 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.

there was no new line at the end of /etc/sysfs.conf, now it works perfectly.

Thanks a lot, i think you can close the reportbug.

 Justin

M.


-- 
Emmanuel Bouthenot (aka Kolter)
  MAIL : free.fr / kolter (at)
   GPG : 0x414EC36E
   WWW : http://kolter.free.fr
JABBER : amessage.de / kolter (at)