Your message dated Mon, 7 Mar 2005 22:28:19 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#298296: sysfsutils bug
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 6 Mar 2005 13:34:08 +0000
>From [EMAIL PROTECTED] Sun Mar 06 05:34:08 2005
Return-path: <[EMAIL PROTECTED]>
Received: from postfix3-1.free.fr [213.228.0.44] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D7vtY-0000Y6-00; Sun, 06 Mar 2005 05:34:08 -0800
Received: from electron.openics.org (aqu33-1-82-233-52-94.fbx.proxad.net 
[82.233.52.94])
        by postfix3-1.free.fr (Postfix) with ESMTP id 7CA431734B4;
        Sun,  6 Mar 2005 14:34:07 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Emmanuel Bouthenot <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: sysfsutils script unusable (do nothing)
X-Mailer: reportbug 3.8
Date: Sun, 06 Mar 2005 14:34:56 +0100
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: sysfsutils
Version: 1.2.0-5
Severity: grave
Justification: renders package unusable


my /etc/sysfs.conf is like :

----------------------------------------
#
# /etc/sysfs.conf - Configuration file for setting sysfs attributes.
#
# The sysfs mount directory is automatically prepended to the attribute
# paths.
#
# Examples:
#
# Always use the powersave CPU frequency governor
# devices/system/cpu/cpu0/cpufreq/scaling_governor=powersave
#
# Use userspace CPU frequency governor and set initial speed
# devices/system/cpu/cpu0/cpufreq/scaling_governor = userspace
# devices/system/cpu/cpu0/cpufreq/scaling_setspeed = 600000

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

but the script doesn't affect any file in sys, a proof : 

i've had 'set -x' in the script and the result of "/etc/init.d/sysfsutils 
start" is the following : 

----------------------------------------
[EMAIL PROTECTED]:26]
[/home/manu]
>/etc/init.d/sysfsutils start
+ CONFFILE=/etc/sysfs.conf
++ /usr/bin/systool -m
+ MNTPATH=/sys
+ '[' -r /etc/sysfs.conf ']'
+ case "$1" in
+ echo -n 'Setting sysfs variables...'
Setting sysfs variables...+ sed 's/#.*$//; /^[[:space:]]*$/d;
              
s/^[[:space:]]*\([^[:space:]]*\)[[:space:]]*=[[:space:]]*\(.*\)/\1 \2/' 
/etc/sysfs.conf
+ read key val
+ echo done.
done.
[EMAIL PROTECTED]:26]
[/home/manu]
>             
----------------------------------------

it seems that the problem comes from this kind of operation :

----------------------------------------
[EMAIL PROTECTED]:26]
[/home/manu]
>echo "test" | read line ; echo $line

[EMAIL PROTECTED]:28]
[/home/manu]
>dash
# echo "test" | read line ; echo $line

# [EMAIL PROTECTED]:29]
[/home/manu]
>
----------------------------------------

i've tried with bash and dash and the problem is the same !

it seems to be a well known problem see E4 question and answer in :
http://www.faqs.org/faqs/unix-faq/shell/bash/


M.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-openics2-k7
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

Versions of packages sysfsutils depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libsysfs1                   1.2.0-5      interface library to sysfs

-- no debconf information

---------------------------------------
Received: (at 298296-done) by bugs.debian.org; 8 Mar 2005 01:35:06 +0000
>From [EMAIL PROTECTED] Mon Mar 07 17:35:05 2005
Return-path: <[EMAIL PROTECTED]>
Received: from ms-smtp-01.nyroc.rr.com [24.24.2.55] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D8Tcn-0000hZ-00; Mon, 07 Mar 2005 17:35:05 -0800
Received: from andromeda (cpe-24-59-54-124.twcny.res.rr.com [24.59.54.124])
        by ms-smtp-01.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id 
j281YtK3014249
        for <[EMAIL PROTECTED]>; Mon, 7 Mar 2005 20:34:56 -0500 (EST)
Received: from pryzbyj by andromeda with local (Exim 3.36 #1 (Debian))
        id 1D8Tcc-00024E-00
        for <[EMAIL PROTECTED]>; Mon, 07 Mar 2005 20:34:54 -0500
Resent-From: [EMAIL PROTECTED]
Resent-Date: Mon, 7 Mar 2005 20:34:52 -0500
Resent-Message-ID: <[EMAIL PROTECTED]>
Resent-To: [EMAIL PROTECTED]
X-Original-To: [EMAIL PROTECTED]
Received: from sc8-sf-mx1.sourceforge.net (lists.sourceforge.net 
[66.35.250.206])
        by webmin.steelfarms.net (Postfix) with ESMTP id 75E4C12800A
        for <[EMAIL PROTECTED]>; Mon,  7 Mar 2005 20:33:07 -0500 (EST)
Received: from postfix4-1.free.fr ([213.228.0.62])
        by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.41)
        id 1D8Tao-00055z-Ny
        for [EMAIL PROTECTED]; Mon, 07 Mar 2005 17:33:04 -0800
Received: from electron (aqu33-1-82-233-52-94.fbx.proxad.net [82.233.52.94])
        by postfix4-1.free.fr (Postfix) with ESMTP id A9CE12A2E3D;
        Mon,  7 Mar 2005 22:28:49 +0100 (CET)
From: manu <[EMAIL PROTECTED]>
To: Justin Pryzby <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED]
Subject: Re: Bug#298296: sysfsutils bug
Date: Mon, 7 Mar 2005 22:28:19 +0100
User-Agent: KMail/1.7.2
References: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <[EMAIL PROTECTED]>
X-Spam-Score: 0.3 (/)
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Le Lundi 7 Mars 2005 20:40, Justin Pryzby a =E9crit=A0:
> 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.


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


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

Reply via email to