Package: powersaved
Version: 0.14.0-8
Severity: normal

Hi,
when using /bin/dash as /bin/sh with kernel 2.6.24, powersave init scripts
fails and logs following error:

> FATAL: Error inserting speedstep_centrino
> (/lib/modules/2.6.24-custom/kernel/arch/x86/kernel/cpu/cpufreq/speedstep-centrino.ko):
> No such device

speedstep_centrino is not available any more on 2.6.24 so, powersave should
try next module in $CPUFREQ_MODULES

but after 
modprobe $MODULE &>/dev/null
RETVAL=$?

RETVAL will be 0 in dash, and RETVAL will be non 0 in bash

That case seems to be handled differently in bash and dash

00:15 ~ % bash
00:15 ~ $ LANG=C ls /nonexistent_file &>/dev/null
00:15 ~ $ echo $?
2
00:15 ~ $ dash
$ LANG=C ls /nonexistent_file &>/dev/null
$ ls: cannot access /nonexistent_file: No such file or directory
echo $?
0
[1] + Done(2)                    ls /nonexistent_file
$ 



arno

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22custom
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages powersaved depends on:
ii  adduser                 3.105            add and remove users and groups
ii  dbus                    1.1.2-1          simple interprocess messaging syst
ii  hal                     0.5.10-5         Hardware Abstraction Layer
ii  libc6                   2.7-6            GNU C Library: Shared libraries
ii  libcpufreq0             002-7            shared library to deal with the cp
ii  libdbus-1-3             1.1.2-1          simple interprocess messaging syst
ii  libdbus-glib-1-2        0.74-1           simple interprocess messaging syst
ii  libgcc1                 1:4.3-20080202-1 GCC support library
ii  libglib2.0-0            2.14.5-2         The GLib library of C routines
ii  libhal1                 0.5.10-5         Hardware Abstraction Layer - share
ii  libpowersave10          0.14.0-8         power management daemon - shared l
ii  libstdc++6              4.3-20080202-1   The GNU Standard C++ Library v3
ii  lsb-base                3.1-24           Linux Standard Base 3.1 init scrip

Versions of packages powersaved recommends:
ii  acpid                         1.0.6-5    Utilities for using ACPI power man
pn  grub                          <none>     (no description available)
ii  hdparm                        7.7-1      tune hard disk parameters for high
ii  kpowersave                    0.7.3-2    HAL based power management applet 
pn  uswsusp                       <none>     (no description available)

-- no debconf information



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

Reply via email to