X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fscripts%2Fhddshutdown;fp=src%2Fscripts%2Fhddshutdown;h=a99b16a8698b63e7b9853b089f3547726f234ae8;hb=f9956330be1240ebd5393c6b2bd4f627bc39bf79;hp=86ec23d48082df5935a294211c8bcf7529d9354a;hpb=56b7a3e2c4ad404ec589b01479b4a65609fbfc23;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/src/scripts/hddshutdown b/src/scripts/hddshutdown index 86ec23d480..a99b16a869 100644 --- a/src/scripts/hddshutdown +++ b/src/scripts/hddshutdown @@ -33,7 +33,7 @@ chomp $newdiskstats; system("/sbin/hdparm -y /dev/$_"); system("touch /tmp/hddshutdown-$_"); } - elsif ($diskstatus{$_} ne "0" || $status !=~/standby/){ + else{ if ($debug){print "Device ".$_." is active.\n";} if ( -e "/tmp/hddshutdown-$_" ) { system("unlink /tmp/hddshutdown-$_"); } }