--- /etc/acpi/resume.d/90-hdparm.sh.o 2009-01-15 13:17:01.000000000 +0100 +++ /etc/acpi/resume.d/90-hdparm.sh 2009-01-15 13:16:37.000000000 +0100 @@ -29,7 +29,7 @@ if [ $DO_HDPARM = y ] ; then # Check for APM support; discard errors since not all drives # support HDIO_GET_IDENTITY (-i). if hdparm -i $dev 2> /dev/null | grep -q 'AdvancedPM=yes' ; then - if [ $STATE = "BATTERY" ] ; then + if [ "$STATE" = "BATTERY" ] ; then hdparm -B 128 $dev else hdparm -B 254 $dev