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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]