找回密码
 立即注册
楼主: flyysoft

[教程] 【原创】猫盘刷群晖后LED和风扇控制脚本 更新v2.1

 火... [复制链接]

0

主题

9

回帖

24

积分

初级渣柚V1

积分
24
QQ
412999826 发表于 2022-5-22 19:21:54 | 显示全部楼层 IP:–北京–北京 联通
试试这个脚本

0

主题

1

回帖

8

积分

初级渣柚V1

积分
8
QQ
871370957 发表于 2022-5-24 17:18:45 | 显示全部楼层 IP:–辽宁–大连 联通
感谢分享dddd

1

主题

71

回帖

223

积分

中级渣柚V1

积分
223
lpfeihu 发表于 2022-5-27 15:31:37 | 显示全部楼层 IP:–重庆–重庆 移动
支持,下载备用

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-5-31 22:40:13 | 显示全部楼层 IP:–广东–东莞 电信
我来试试 我的灵不灵
) r$ Y& [2 V; p3 U0 ^

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-6-2 20:01:17 | 显示全部楼层 IP:–广东–东莞 电信
本帖最后由 wifi之歌 于 2022-6-2 20:05 编辑   g3 t/ @' r+ r# u4 ^9 Q7 r! Z- \

& W3 I$ }! w3 s# [root@maopan:~# smartctl -a /dev/sda( q6 E2 B9 F3 o( {% M
smartctl 6.5 (build date Oct  7 2021) [aarch64-linux-4.4.180+] (local build)$ g" c/ h! X. O- ^6 P# s* a- n
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org& o* s4 R% K7 u8 s
% v3 G/ S) U" h6 a- f; j( _

* }8 A. F! H5 _: `* x# e- X, u' i=== START OF INFORMATION SECTION ===! G9 w+ R1 y* f6 L# \$ U# C
Model Family:     Seagate Laptop HDD9 m  B4 w/ E9 v" b" y; t
Device Model:     ST500LM021-1KJ152
7 f1 J% S0 _0 U( OSerial Number:    W62BXE1T/ b; Z$ R! u* |5 e! |  ?
LU WWN Device Id: 5 000c50 09b42c816
, ^( |6 s, u% L; y3 z5 AFirmware Version: 0002YXM1
' l5 }  C) X, U- H6 @' c, c/ [5 oUser Capacity:    500,107,862,016 bytes [500 GB]! \8 F0 K+ T! ~! u* x
Sector Sizes:     512 bytes logical, 4096 bytes physical
* h' X- }9 u1 G1 T' a3 P9 LRotation Rate:    7200 rpm$ w( e: o. q0 b2 i
Form Factor:      2.5 inches
8 L# Z  L; Q. M5 F. c, s- kDevice is:        In smartctl database [for details use: -P show]
# t$ m. |/ e' n3 IATA Version is:   ATA8-ACS T13/1699-D revision 4+ G2 i) z1 j/ ^
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
1 O- l  Y9 ]& c. F$ HLocal Time is:    Thu Jun  2 19:37:36 2022 CST
) n+ S" y- f; L+ ~- K; e6 cSMART support is: Available - device has SMART capability.1 g0 Q! g# U1 a6 W9 \
SMART support is: Enabled
/ P+ K1 X+ `6 [# q4 N4 `, o
4 |/ E- ?* j, D# A9 ?3 p, q
% A( G* ~' G+ _& K# y7 G
=== START OF READ SMART DATA SECTION ===
( z7 [: y: V% y1 T3 jSMART overall-health self-assessment test result: PASSED' @0 @: R' k  O" y# N+ P. M0 _
See vendor-specific Attribute list for marginal Attributes.+ v! ?0 e3 c% {6 n& Q( U3 K2 M; j

: v* w( a' y% t: K8 r

* N/ O2 ]$ f  f7 f* F' u! gGeneral SMART Values:
  m) G9 i( u/ D, tOffline data collection status:  (0x82) Offline data collection activity
0 r: h" `& A' u' u0 q                                        was completed without error.5 S2 L2 u# i) G7 Q
                                        Auto Offline Data Collection: Enabled.0 j& b9 ~* @2 d
Self-test execution status:      (   0) The previous self-test routine completed/ }! c1 P- j8 N7 w- ?
                                        without error or no self-test has ever
: y" R( o  z# _2 N- U6 A/ t                                        been run.0 {7 z8 `( R; [% [
Total time to complete Offline0 W  v9 \, P- x0 `  {
data collection:                (    0) seconds.2 S* i: Z" u! e- M5 t/ }: A
Offline data collection9 q3 [& F( V7 ~2 s( w
capabilities:                    (0x5b) SMART execute Offline immediate.
: g4 ~. H& y* p9 g                                        Auto Offline data collection on/off support.. G& c, q& c0 @% T& |4 g
                                        Suspend Offline collection upon new
9 ^- |$ {3 o# N1 z6 t4 q                                        command." a1 [; u$ Q- z. I) l
                                        Offline surface scan supported.
; Y1 s! \: `5 O9 o# J; n& U0 a' Q                                        Self-test supported.
% Y  d% z" |" S- P( f* F& J1 v                                        No Conveyance Self-test supported.
  s: d) |- Y( @! ^8 C, S3 b, f                                        Selective Self-test supported.$ E7 F& {1 j1 d. c9 A7 X+ i
SMART capabilities:            (0x0003) Saves SMART data before entering
6 b5 q% H9 Z% o9 ?1 K; c" @9 ~" V                                        power-saving mode.
. E$ s7 t( ]  c' R3 K                                        Supports SMART auto save timer.) o5 i; S0 h6 @* H
Error logging capability:        (0x01) Error logging supported.
+ B9 o" w1 l6 i( Q" q0 d8 x/ G                                        General Purpose Logging supported.' E) B4 [6 Q2 n% a' L9 n! t/ c
Short self-test routine3 ?  u# k4 |0 O6 x2 ^
recommended polling time:        (   2) minutes.
- @9 G0 c7 T9 }. o$ X( T  |/ PExtended self-test routine
  S4 h/ A& r# u* F+ hrecommended polling time:        (  78) minutes.8 e" n  D+ a' U- [+ q9 y. ~. S
SCT capabilities:              (0x103d) SCT Status supported.2 M' F0 Z1 O- Z2 u8 \7 |
                                        SCT Error Recovery Control supported.
# Q7 j/ K( [5 ?% F2 d) d) y                                        SCT Feature Control supported.6 o- t5 I, h6 z
                                        SCT Data Table supported.
1 @- O; [" k! e# X
; F% {8 \3 O/ Y$ s6 ~2 c1 P+ \

1 ~2 v# y4 D! N+ Z$ xSMART Attributes Data Structure revision number: 100 q* Q3 L1 n* [* i# m1 v
Vendor Specific SMART Attributes with Thresholds:" ~4 O! O5 M' z
ID# ATTRIBUTE_NAME                                                   FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
% m, u/ X" k6 _7 G) D  1 Raw_Read_Error_Rate                                              0x002f   119   100   006    Pre-fail  Always       -       229169640
+ \0 E- k' z9 p# r  _  3 Spin_Up_Time                                                     0x0023   098   098   000    Pre-fail  Always       -       0" C0 P. g( K) Z' W# J. Q. K) ~
  4 Start_Stop_Count                                                 0x0032   100   100   000    Old_age   Always       -       123
9 q: G( o* z9 s7 t8 y4 \3 M  5 Reallocated_Sector_Ct                                            0x0033   100   100   036    Pre-fail  Always       -       0
# U4 C, ]4 [! D- A' {  7 Seek_Error_Rate                                                  0x002f   069   060   030    Pre-fail  Always       -       9159082- L' P" U' E+ Q) u
  9 Power_On_Hours                                                   0x0032   090   090   000    Old_age   Always       -       88479 o' n- T1 Z6 ?, Q0 f
10 Spin_Retry_Count                                                 0x0033   100   100   097    Pre-fail  Always       -       07 G3 ^; I, m2 U4 Q2 ^+ |% k
12 Power_Cycle_Count                                                0x0032   100   100   000    Old_age   Always       -       119
" V9 k( L# o0 f% d# a183 Runtime_Bad_Block                                                0x0032   100   100   000    Old_age   Always       -       0
* Z, I! ~7 n$ E2 ~2 u- _184 End-to-End_Error                                                 0x0033   100   100   097    Pre-fail  Always       -       0+ D6 r% u. v6 S0 K& t/ [% A' [
187 Reported_Uncorrect                                               0x0032   100   100   000    Old_age   Always       -       05 F2 i5 A6 C( g# `9 a( M
188 Command_Timeout                                                  0x0032   100   100   000    Old_age   Always       -       0
. J1 O6 C$ G- L7 b( a: E189 High_Fly_Writes                                                  0x003a   100   100   000    Old_age   Always       -       06 w: w" R7 x4 T1 o' m
190 Airflow_Temperature_Cel                                          0x0022   064   045   045    Old_age   Always   In_the_past 36 (Min/Max 36/40)/ c1 I+ S% m- [% x# q' T
191 G-Sense_Error_Rate                                               0x0032   100   100   000    Old_age   Always       -       10( V% ~: K8 D5 L# ?$ ~& D. _8 @
192 Power-Off_Retract_Count                                          0x0022   100   100   000    Old_age   Always       -       22) x/ U: [- X2 H5 @
193 Load_Cycle_Count                                                 0x0032   100   100   000    Old_age   Always       -       506
. D$ u. t: O* o( ]# R* s! \/ C2 Q194 Temperature_Celsius                                              0x0022   036   055   000    Old_age   Always       -       36 (0 18 0 0 0)# f3 |# K: k5 t5 V; B5 ]9 l
196 Reallocated_Event_Count                                          0x0032   100   100   000    Old_age   Always       -       0
1 T  e% E. A$ f197 Current_Pending_Sector                                           0x0032   100   100   000    Old_age   Always       -       0# H& c% w  M; I4 G: r
198 Offline_Uncorrectable                                            0x0030   100   100   000    Old_age   Offline      -       0( S. i: W5 z  o& c& i
199 UDMA_CRC_Error_Count                                             0x0032   200   200   000    Old_age   Always       -       0
2 p5 G) ?! B' L4 _254 Free_Fall_Sensor                                                 0x0032   100   100   000    Old_age   Always       -       0  |- ~  `  s2 o- s3 Z3 f0 N0 k$ i& ]

/ R  s1 s8 `) p' `- V

% F9 O0 Z3 c! N; G9 uSMART Error Log Version: 1% ^! `$ C# R. i
No Errors Logged
1 x- P. |: {6 ?0 U: h9 t) b+ M7 x. v1 ^$ @
' C* g0 E7 l: ~$ M9 l: f3 g9 M
SMART Self-test log structure revision number 1
- F- M5 y8 U/ u" H; dNum  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
" \$ F$ Z3 U- N+ j. v# H1 t+ Q! O# 1  Short offline       Completed without error       00%      8725         -7 y! E1 o; m+ g2 ~
# 2  Short offline       Completed without error       00%      8175         -
1 v3 B7 p, _1 |& D5 y' i, w  \# 3  Short offline       Completed without error       00%      7455         -
* q, ?$ k7 K4 p( F1 P" a# 4  Short offline       Completed without error       00%      6712         -
4 c) A0 G6 C! E1 j: Z! X. a  F# 5  Short offline       Completed without error       00%      5992         -! ^' M4 w/ H. N) s
# 6  Short offline       Completed without error       00%      5248         -# H3 A$ l7 z+ z% V" O
# 7  Short offline       Completed without error       00%      4576         -
$ R4 ^, E$ T. K. c7 \5 L# 8  Short offline       Completed without error       00%      3834         -
0 z: j/ i  X/ w* ^7 T# 9  Short offline       Completed without error       00%      3090         -: ?5 A9 D: }  q: v2 q4 ]' B8 M: W
#10  Short offline       Completed without error       00%      2975         -
# N& }/ w2 w0 }  `; |1 |8 n#11  Short offline       Completed without error       00%      2255         -: r3 i$ _7 K8 E7 T
#12  Short offline       Completed without error       00%      1511         -  x2 C. t* |$ J8 J& s1 U  d' v
#13  Short offline       Completed without error       00%       769         -6 ?+ @& b' Y) J( k$ O* w7 z' [
#14  Short offline       Completed without error       00%        68         -9 D& P- W& t+ U( B3 b. G4 o8 j+ {1 ]
#15  Short offline       Completed without error       00%        26         -
+ a& a" I( u7 o( z1 b, z9 V#16  Short offline       Completed without error       00%         1         -9 z) O1 m+ I4 \1 [, c8 E6 x  J
' F3 ]) [, B+ I, m, H

$ G" i+ M9 n9 Z6 ~& K5 P. U7 r. zSMART Selective self-test log data structure revision number 1( v9 c, H* G5 N
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS, {; P' T: N% q: g  A0 y( j/ B
    1        0        0  Not_testing
+ Q9 i6 T, \1 r0 M    2        0        0  Not_testing
, h9 B8 |4 i3 W5 F0 k' Y    3        0        0  Not_testing
. o  \8 j- e+ z$ n    4        0        0  Not_testing
4 ?. N* F8 Q! e* @1 L+ t2 Q1 J    5        0        0  Not_testing. {: c" e9 R1 C! a: l' ?0 a
Selective self-test flags (0x0):# }( F( X0 `6 `1 m. r- B- p. V
  After scanning selected spans, do NOT read-scan remainder of disk.
) L/ |* o2 l- k$ c5 kIf Selective self-test is pending on power-up, resume after 0 minute delay./ o: r- f- K* o1 k& C7 l7 `

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-6-2 20:07:24 | 显示全部楼层 IP:–广东–东莞 电信
root@maopan:~# cd /tmp/jioben: V9 J- t4 x) \& \' r% r& [5 k
root@maopan:/tmp/jioben# bash ledfan.sh
" E& g; o+ @" iledfan.sh: line 23: [: -ge: unary operator expected
) k; I/ v- C" _5 ?' e1 f( D9 cledfan.sh: line 37: [: -ge: unary operator expected
' u$ @9 q4 e. e# Sledfan.sh: line 51: [: -lt: unary operator expected* M0 {: t. {2 Y6 {
ledfan.sh: line 23: [: -ge: unary operator expected
. t4 i% ~: c  L9 iledfan.sh: line 37: [: -ge: unary operator expected
: [$ A; t9 j5 E7 \ledfan.sh: line 51: [: -lt: unary operator expected
4 `2 _# w, x6 y& u% A( ?9 B搞不定

0

主题

3

回帖

11

积分

初级渣柚V1

积分
11
QQ
下一页 发表于 2022-6-4 11:36:19 | 显示全部楼层 IP:–甘肃–兰州 电信
感谢大佬
' n9 a) s; s' ~1 p) G$ C0 u6 D

0

主题

10

回帖

31

积分

初级渣柚V1

积分
31
QQ
statlz 发表于 2022-6-15 21:28:17 | 显示全部楼层 IP:–山东–济南 联通
感谢分享

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
s298028236 发表于 2022-6-21 05:57:16 | 显示全部楼层 IP:–广东–广州 电信
来看看学习
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|小黑屋|矿渣社区 ( 黔ICP备2024020525号-1 )

GMT+8, 2026-6-13 00:03 , Processed in 0.070869 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表