]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/scripts/hddshutdown
sdparm eingebaut.
[ipfire-2.x.git] / src / scripts / hddshutdown
index 86ec23d48082df5935a294211c8bcf7529d9354a..a99b16a8698b63e7b9853b089f3547726f234ae8 100644 (file)
@@ -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-$_"); }
   }