[Pkg-acpi-devel] Bug#502704: Bug#502704: Bug#502704: Bug#502704: acpid is
Loïc Minier
lool at dooz.org
Fri Oct 24 09:00:28 UTC 2008
On Fri, Oct 24, 2008, Michael Meskes wrote:
> No. For some strange reasons the "if [ $MODULES ]" works for me as does
> "if [ ! -z $MODULES ]" but "if [ -n $MODULES ]" does not.
Err because you need to quote it!
if [ -n $MODULES ] becomes if [ -n ] when MODULES is empty; what you
want is if [ -n "$MODULES" ] which becomes if [ -n "" ].
> Derrick, could you please add an echo and output $MODULES on your system with
> some boundaries, so we see whether it's empty or maybe containing some empty
> string or whatever? Also could you send us the modules.dep file?
Or set -x at the top and exec 2>/tmp/acpid-log.txt and attach that; I
think it works but didn't test.
--
Loïc Minier
More information about the Pkg-acpi-devel
mailing list