[Pkg-acpi-devel] Bug#500659: Bug#500659: acpid: init script will fail if /proc/modules does not exist

Loïc Minier lool at dooz.org
Tue Sep 30 19:15:10 UTC 2008


On Tue, Sep 30, 2008, Sven Joachim wrote:
> It is a bad idea to use the syntax
> 
>     [ -f /proc/modules ] && load_modules
> 
> in /etc/init.d/acpid, since that causes immediate failure of the script
> if /proc/modules does not exist (such as in non-modular kernels).

 Thanks for the report, this was already fixed in git; I'm only waiting
 for some confirmation one way or the other from release team to push.

 The fix I did some days ago in git (well I rewrote most of the init
 script) is to use "[ -f /proc/modules ] || return" in load_modules():
    load_modules() {
        [ -f /proc/modules ] || return

  Cheers,
-- 
Loïc Minier





More information about the Pkg-acpi-devel mailing list