找回密码
 立即注册
楼主: 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:–广东–东莞 电信
我来试试 我的灵不灵
$ O5 T; e- ?% y& h+ d* o

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-6-2 20:01:17 | 显示全部楼层 IP:–广东–东莞 电信
本帖最后由 wifi之歌 于 2022-6-2 20:05 编辑 , O% V" R( |4 r) G* _
" G& \# U2 C* q3 I
root@maopan:~# smartctl -a /dev/sda
3 b; v; t7 w  ^+ r1 \* ?/ Q3 F2 S7 gsmartctl 6.5 (build date Oct  7 2021) [aarch64-linux-4.4.180+] (local build)
2 @: o" `) c- ?3 K: lCopyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
3 N. }2 ^* e+ B4 m$ y  L% F* k6 b5 S9 D8 C% d
1 `3 B* n9 O: h$ m& \* L; ~
=== START OF INFORMATION SECTION ===
  r0 R6 m9 w8 w( J3 ^Model Family:     Seagate Laptop HDD
7 {* u# v) H# O) }1 _Device Model:     ST500LM021-1KJ152
9 |8 h3 Z3 b, `Serial Number:    W62BXE1T+ d. {* L' [8 O& W( `+ S
LU WWN Device Id: 5 000c50 09b42c816
+ w# u/ G& m. R4 ?; B; {Firmware Version: 0002YXM10 C6 I9 m! {  \9 g7 K$ L. v" A4 L0 d
User Capacity:    500,107,862,016 bytes [500 GB]; c7 e( N; N4 c$ W
Sector Sizes:     512 bytes logical, 4096 bytes physical
1 L) ~. @: z+ B4 [, G% j- b% |3 YRotation Rate:    7200 rpm
- o8 _2 ^- Z8 tForm Factor:      2.5 inches
+ V) t* q& }7 e& }0 WDevice is:        In smartctl database [for details use: -P show]
  ]  b! \) X$ {ATA Version is:   ATA8-ACS T13/1699-D revision 4, E7 D3 C+ z, ]! l. s& t# s
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
: D& W4 }0 ^/ B# I6 O1 j& P* I6 s! S& ILocal Time is:    Thu Jun  2 19:37:36 2022 CST! u5 k- C$ e" Y+ n3 z! x
SMART support is: Available - device has SMART capability.
6 _8 W+ H4 G2 oSMART support is: Enabled
3 a& t, P; R' r" y0 H; C, p& R# z9 k" {/ X
' K7 [$ ?$ Q  V5 J. \+ p
=== START OF READ SMART DATA SECTION ===3 x& `) t2 S/ q# \2 J3 X$ ?
SMART overall-health self-assessment test result: PASSED0 t( ~& p7 d0 @" V" S1 H2 T& t; a9 V
See vendor-specific Attribute list for marginal Attributes.
7 `: ^0 H) x% Z( _0 P- w- f
, I" Q& k, B0 F( B& K* W- s
$ }4 l. C- n# l- k; z
General SMART Values:
  ~6 @* h; h2 f6 pOffline data collection status:  (0x82) Offline data collection activity
% S% V7 ]0 q6 [' A& ?, O* }                                        was completed without error.
- l( a) i. b2 m0 l. `) w                                        Auto Offline Data Collection: Enabled.
/ p* [" b6 l& m4 Z1 `Self-test execution status:      (   0) The previous self-test routine completed
: @" g3 {' G3 X% ?5 a                                        without error or no self-test has ever
0 p( k8 `# d& I0 s( j4 j: N& N                                        been run.6 S' G! h6 f  v/ n. ]6 D6 U
Total time to complete Offline
! o  e) }* c0 b/ k6 x' Z; wdata collection:                (    0) seconds.
& P+ I, J- x3 _; D/ dOffline data collection0 f* X/ o, N8 {8 A0 g1 B/ R
capabilities:                    (0x5b) SMART execute Offline immediate.
- {; e$ v, i( X2 u  Y7 r4 v                                        Auto Offline data collection on/off support.
( H9 z8 Q& T' z" U! j; ~9 Q                                        Suspend Offline collection upon new
( F2 k  n9 r' R8 B& W) U4 K                                        command.
3 L9 c8 {' i' l4 ?  `7 N( i                                        Offline surface scan supported.
  L2 N7 J7 C; [+ L                                        Self-test supported.
. j, c- c: S; L1 N# S3 ~/ h                                        No Conveyance Self-test supported./ M3 s' i4 d; a( y: G
                                        Selective Self-test supported.
# A' ?& L8 r  H8 zSMART capabilities:            (0x0003) Saves SMART data before entering
5 c3 [3 j$ c/ J/ q; T8 R                                        power-saving mode.
7 S% h* t" o# ~                                        Supports SMART auto save timer.! h2 H5 c% Q9 S3 C  f* z1 k
Error logging capability:        (0x01) Error logging supported.
. M( J( e7 B1 x( l                                        General Purpose Logging supported.: s/ G! Y* [) K5 @* R9 ~
Short self-test routine
: g/ s  U+ x" T5 d! [6 [! L/ Xrecommended polling time:        (   2) minutes.
7 G0 Z) i" c% p9 Y& t8 ]Extended self-test routine
2 |5 T5 O% H" ^recommended polling time:        (  78) minutes.
3 I7 H/ V; Z0 P2 n' tSCT capabilities:              (0x103d) SCT Status supported.7 U6 x! R6 v! N2 k
                                        SCT Error Recovery Control supported.! X" N1 U, [6 G% Q
                                        SCT Feature Control supported.
9 `4 i- B% u# R                                        SCT Data Table supported.
! o$ W  G* D+ f/ c/ T0 ^; z; B3 p$ ~# _
' C) h# _- @$ h
# ], ]& J4 d& K/ K0 I) n5 z
SMART Attributes Data Structure revision number: 10
. c' _7 Y8 X: W  u# RVendor Specific SMART Attributes with Thresholds:
7 j" Z6 U1 s0 ?! I1 EID# ATTRIBUTE_NAME                                                   FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
% w9 T0 V% Q. O7 `  1 Raw_Read_Error_Rate                                              0x002f   119   100   006    Pre-fail  Always       -       229169640
% O$ c  f0 O; ?  I; t4 M  3 Spin_Up_Time                                                     0x0023   098   098   000    Pre-fail  Always       -       0# H7 s% R) K8 r1 M9 I' Z+ ~
  4 Start_Stop_Count                                                 0x0032   100   100   000    Old_age   Always       -       123
  t0 y8 J5 s- }, B. R, m  5 Reallocated_Sector_Ct                                            0x0033   100   100   036    Pre-fail  Always       -       0! v0 p( y1 n9 g" v( K$ I$ o8 \
  7 Seek_Error_Rate                                                  0x002f   069   060   030    Pre-fail  Always       -       9159082
/ @+ t! V( j* J4 h& q  9 Power_On_Hours                                                   0x0032   090   090   000    Old_age   Always       -       8847
$ Q1 [3 e7 l2 g" l 10 Spin_Retry_Count                                                 0x0033   100   100   097    Pre-fail  Always       -       0
3 }9 l  |2 J6 D2 U% @  q" E5 d* W 12 Power_Cycle_Count                                                0x0032   100   100   000    Old_age   Always       -       119* C9 Q% f3 _1 A9 l% d( j
183 Runtime_Bad_Block                                                0x0032   100   100   000    Old_age   Always       -       0! {7 O' C2 }$ B: `" f
184 End-to-End_Error                                                 0x0033   100   100   097    Pre-fail  Always       -       0
1 a/ E0 r1 L8 a  F  L" e! y187 Reported_Uncorrect                                               0x0032   100   100   000    Old_age   Always       -       0
3 p" m, z& d4 K# l3 T1 G+ M2 ]188 Command_Timeout                                                  0x0032   100   100   000    Old_age   Always       -       0, P3 W. X9 q& C, Z: {. A0 D
189 High_Fly_Writes                                                  0x003a   100   100   000    Old_age   Always       -       0
' j% @! s* {3 G0 l190 Airflow_Temperature_Cel                                          0x0022   064   045   045    Old_age   Always   In_the_past 36 (Min/Max 36/40)
; ~6 k3 ?! T% i/ d, Y0 K  q$ {191 G-Sense_Error_Rate                                               0x0032   100   100   000    Old_age   Always       -       10) g' n3 A9 [. a
192 Power-Off_Retract_Count                                          0x0022   100   100   000    Old_age   Always       -       22
, k; M/ ^# |5 o, _" g193 Load_Cycle_Count                                                 0x0032   100   100   000    Old_age   Always       -       506
' u3 p+ P$ K( k" r194 Temperature_Celsius                                              0x0022   036   055   000    Old_age   Always       -       36 (0 18 0 0 0)
1 @! G0 U+ A  S5 D" n  D196 Reallocated_Event_Count                                          0x0032   100   100   000    Old_age   Always       -       07 J1 @5 x* a; r; |
197 Current_Pending_Sector                                           0x0032   100   100   000    Old_age   Always       -       0
. v7 y" |) H, m( c/ E* T) Z5 a; [) ^198 Offline_Uncorrectable                                            0x0030   100   100   000    Old_age   Offline      -       0
( i  ]1 h6 o0 J7 W$ m( _' Y$ }; `199 UDMA_CRC_Error_Count                                             0x0032   200   200   000    Old_age   Always       -       0
3 h$ D" Y% [& d' Q9 |6 r254 Free_Fall_Sensor                                                 0x0032   100   100   000    Old_age   Always       -       0
- {* o+ a0 I( ^" `
% e( M' R7 ?, O

) ^4 W" M# B7 k! @SMART Error Log Version: 16 I  V% v9 k' O
No Errors Logged
  V/ F- w) e$ r+ Y' I
0 z% G; I7 K: U

8 l& ]+ Q7 u+ i1 C/ B3 ?SMART Self-test log structure revision number 18 ~5 }( v3 g& q! d
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
7 k/ |5 {- j9 i. h% r# 1  Short offline       Completed without error       00%      8725         -
2 p  s7 n: n  G) b3 g$ B- {# 2  Short offline       Completed without error       00%      8175         -* J9 o. X) P- S" d" q# e1 h
# 3  Short offline       Completed without error       00%      7455         -
: _% M; \; z  t; k& D8 e# 4  Short offline       Completed without error       00%      6712         -- M5 S9 V& m. U8 I
# 5  Short offline       Completed without error       00%      5992         -
& `4 b( F) R% }5 y# 6  Short offline       Completed without error       00%      5248         -/ B- Y' `- a2 J& h1 d
# 7  Short offline       Completed without error       00%      4576         -( C. z/ E2 z2 K1 Q9 g) f
# 8  Short offline       Completed without error       00%      3834         -
9 H# M! g  ?- N. e( U8 h# 9  Short offline       Completed without error       00%      3090         -2 ?( N8 l# ^2 k5 t' W
#10  Short offline       Completed without error       00%      2975         -% w& l7 }7 {0 l! k+ N
#11  Short offline       Completed without error       00%      2255         -! j! I1 ]) C! @( j; q  L0 a
#12  Short offline       Completed without error       00%      1511         -; f3 N0 u% s3 m! _
#13  Short offline       Completed without error       00%       769         -4 A/ E- t  x! N% \- _3 i* d
#14  Short offline       Completed without error       00%        68         -  U" l* ]) T) F2 w7 F
#15  Short offline       Completed without error       00%        26         -
) O: a; E1 T3 b( T7 Y& I3 T8 o1 D#16  Short offline       Completed without error       00%         1         -' L# e3 D5 m+ ?' |. M. u

6 Q' w- n8 g+ {/ H) s! [
0 f& Y' c( t( V, o
SMART Selective self-test log data structure revision number 1  B$ L5 c" m/ _
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
7 P& W/ T8 p6 w6 |2 y: F  B    1        0        0  Not_testing( r1 `  w* _0 R- z
    2        0        0  Not_testing
9 y% f; W- ?( N( w5 ]    3        0        0  Not_testing
1 ^" K1 A+ y3 P3 U    4        0        0  Not_testing6 N& w" Q; z& ?. }. q, j
    5        0        0  Not_testing( x. l6 @, a) R0 M' c  P$ _- y
Selective self-test flags (0x0):; e3 p, S9 u# [0 w
  After scanning selected spans, do NOT read-scan remainder of disk.
9 G7 Q. a0 q( j: n4 i' RIf Selective self-test is pending on power-up, resume after 0 minute delay.
+ d. T( q% l3 n# i

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-6-2 20:07:24 | 显示全部楼层 IP:–广东–东莞 电信
root@maopan:~# cd /tmp/jioben' i+ Z2 y& [( |& G
root@maopan:/tmp/jioben# bash ledfan.sh
2 D5 |# t# H/ [% M- bledfan.sh: line 23: [: -ge: unary operator expected8 A+ K: F3 L- Q& {1 k  u
ledfan.sh: line 37: [: -ge: unary operator expected5 `( H4 p: I& _- x" ]) {
ledfan.sh: line 51: [: -lt: unary operator expected. K- j( ?9 Y" C
ledfan.sh: line 23: [: -ge: unary operator expected/ \9 K0 ]) Z1 x+ }1 O5 u
ledfan.sh: line 37: [: -ge: unary operator expected6 G8 x0 e- M5 e7 I( t3 U. K1 n
ledfan.sh: line 51: [: -lt: unary operator expected* K0 d- v* u( R2 v4 w- K
搞不定

0

主题

3

回帖

11

积分

初级渣柚V1

积分
11
QQ
下一页 发表于 2022-6-4 11:36:19 | 显示全部楼层 IP:–甘肃–兰州 电信
感谢大佬
7 C% O2 T4 q/ {! p

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-4-27 05:44 , Processed in 0.085696 second(s), 30 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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