mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Hddshutdown-Fixes.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@792 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -21,10 +21,10 @@ $status = `hdparm -C /dev/$hdd | tail -1 | cut -d: -f2`;
|
||||
|
||||
if ( $status=~/standby/){
|
||||
my $ftime = localtime((stat("/tmp/hddshutdown-$hdd"))[9]);
|
||||
print"<B>Disk $hdddev status: <font color=#00FF00>standby</font></B> (since $ftime)";
|
||||
print"<B>Disk $hdd status: <font color=#00FF00>standby</font></B> (since $ftime)";
|
||||
}
|
||||
else{
|
||||
print"<B>Disk $hdddev status: <font color=#FF0000>active</font></B>";
|
||||
print"<B>Disk $hdd status: <font color=#FF0000>active</font></B>";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user