找回密码
 立即注册
楼主: 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:–广东–东莞 电信
我来试试 我的灵不灵* o- x5 y/ S1 f: _7 x

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-6-2 20:01:17 | 显示全部楼层 IP:–广东–东莞 电信
本帖最后由 wifi之歌 于 2022-6-2 20:05 编辑 ! e; y$ m2 C2 F+ C, X/ J

# v; v. p: a; k0 P! }* Lroot@maopan:~# smartctl -a /dev/sda: p9 ]) |: \# T& J% y5 |: ?
smartctl 6.5 (build date Oct  7 2021) [aarch64-linux-4.4.180+] (local build)
# r" y# @8 J! X! ?, v  R( e( SCopyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
2 O6 W4 K& ?8 e8 p2 q( u  U/ K0 f$ u. b9 L# a+ J5 t

) N3 Q* [* ?6 r( e0 g3 L0 O=== START OF INFORMATION SECTION ===4 X3 s! V* B! a' e- I
Model Family:     Seagate Laptop HDD: b" x0 q. Z1 H& ~
Device Model:     ST500LM021-1KJ1526 a; P1 \! R3 ^7 y) `7 }, B0 J, U
Serial Number:    W62BXE1T
  V: ]7 D# l& vLU WWN Device Id: 5 000c50 09b42c816" b) [8 r& d( F3 c
Firmware Version: 0002YXM19 C. ?3 P( k, z
User Capacity:    500,107,862,016 bytes [500 GB]
+ q; N3 J( }- z; d' wSector Sizes:     512 bytes logical, 4096 bytes physical) m# v; D+ }" [# O
Rotation Rate:    7200 rpm
2 `+ Z) ~6 `. p* u# c' t1 D, mForm Factor:      2.5 inches: |0 m4 r) x9 ], G# A
Device is:        In smartctl database [for details use: -P show]3 ]  ^$ J+ R! @6 q1 v# f9 Z* J
ATA Version is:   ATA8-ACS T13/1699-D revision 4
2 _, t& s0 {4 v( O0 O  lSATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
$ B0 \; l( X6 H; }; r7 q& }0 sLocal Time is:    Thu Jun  2 19:37:36 2022 CST# ~" n/ d% `' p$ s5 i8 J8 \
SMART support is: Available - device has SMART capability." k! p- ], n: O7 s, E8 O. J* ]" k
SMART support is: Enabled# v  X$ z5 \9 R# @/ B& p3 l7 J: l2 q3 o6 `

  X6 e" M* }# k  N7 K4 l

. |* [7 V) [( L% {0 l* y1 X=== START OF READ SMART DATA SECTION ===
5 o& H& A8 t/ H; N# w+ g& F5 nSMART overall-health self-assessment test result: PASSED
9 E" A4 u" g5 \! k+ ~See vendor-specific Attribute list for marginal Attributes.( @# I4 M5 K0 v
' B* ~% q* t3 E& F1 I3 I, L
1 K+ U& b" t. F# D; E! v0 x( J# s8 \
General SMART Values:0 P5 ]6 C, m$ j
Offline data collection status:  (0x82) Offline data collection activity
7 y$ q6 a( S- C6 x                                        was completed without error.
$ M/ E0 l9 l1 |# Y1 s# Y1 I                                        Auto Offline Data Collection: Enabled.
9 X9 n7 v. q4 G3 DSelf-test execution status:      (   0) The previous self-test routine completed
7 U' y. |6 O6 d  \' [& V/ T( y. z                                        without error or no self-test has ever
) @  Z, b% u/ v' o/ |9 T                                        been run.
3 ^/ _! U0 J  [Total time to complete Offline
8 k8 g7 _/ F. K$ @. o4 Pdata collection:                (    0) seconds.
' I+ s  z3 m8 l3 WOffline data collection
  I0 R! U1 q7 }7 Kcapabilities:                    (0x5b) SMART execute Offline immediate.
2 F1 T  Y' [! j: z' C% p. c6 J5 q                                        Auto Offline data collection on/off support.
4 G, O' v5 F7 e' y9 X8 \' w                                        Suspend Offline collection upon new
: n$ m0 J! [- i# z$ w& z! W                                        command.
' H3 [9 N  ]9 w6 d3 S, T" |                                        Offline surface scan supported.6 @% c5 b4 `4 _6 ^6 S
                                        Self-test supported.5 Q3 m1 g' \8 o+ Z9 Z5 `
                                        No Conveyance Self-test supported./ S: s2 ^  f* t! Q
                                        Selective Self-test supported.
2 C8 f  f& g" C+ S( NSMART capabilities:            (0x0003) Saves SMART data before entering# ^/ `, o: E) s8 j+ o5 C2 s5 ~' G8 `
                                        power-saving mode.
1 B, J1 g) W* Y$ P+ r                                        Supports SMART auto save timer.
( ^: R5 I; Q/ j6 U! jError logging capability:        (0x01) Error logging supported.+ ?5 T: n/ m" V: F, x9 P+ s% z. R
                                        General Purpose Logging supported.
( J: f  T/ `  n# Z7 _, OShort self-test routine
/ R6 n5 Y0 N, \1 `8 a! l3 irecommended polling time:        (   2) minutes.
0 U# [: X7 |# K! hExtended self-test routine
, v( O8 y  {2 ]recommended polling time:        (  78) minutes.9 O; }! M$ k; I, x6 K- S
SCT capabilities:              (0x103d) SCT Status supported.+ ?2 T# z2 F% X7 s8 B4 F
                                        SCT Error Recovery Control supported." p6 w5 o( o( {+ P' P& A9 f  a5 s
                                        SCT Feature Control supported.
  y" y9 f) u% A0 {# V3 N! P                                        SCT Data Table supported.( c* |/ F8 y; A& Z! c5 V* Y

% ~* D: t# H; [- T( I6 |) C

+ I2 j; L$ D/ H+ @8 _SMART Attributes Data Structure revision number: 10
6 |; c6 a' L3 H; N% oVendor Specific SMART Attributes with Thresholds:
! l/ f- V0 `- L2 t- S$ B* B$ `9 zID# ATTRIBUTE_NAME                                                   FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
0 a+ w, [- R7 a1 o- S4 C' A  1 Raw_Read_Error_Rate                                              0x002f   119   100   006    Pre-fail  Always       -       229169640
! {, P7 I' a7 n- T$ n  3 Spin_Up_Time                                                     0x0023   098   098   000    Pre-fail  Always       -       0
' s- y- `" p& c& x1 {  4 Start_Stop_Count                                                 0x0032   100   100   000    Old_age   Always       -       123( `. ]( H, S' |& [* S% f6 w
  5 Reallocated_Sector_Ct                                            0x0033   100   100   036    Pre-fail  Always       -       0: F" y8 T( L- n- M! P6 x6 b
  7 Seek_Error_Rate                                                  0x002f   069   060   030    Pre-fail  Always       -       9159082+ I  J/ o6 z4 ^* E) j6 @
  9 Power_On_Hours                                                   0x0032   090   090   000    Old_age   Always       -       8847) j& A7 R- ]6 x% o8 e
10 Spin_Retry_Count                                                 0x0033   100   100   097    Pre-fail  Always       -       0
% K6 p7 A: J! X 12 Power_Cycle_Count                                                0x0032   100   100   000    Old_age   Always       -       119- ?( c4 H" B$ X0 [
183 Runtime_Bad_Block                                                0x0032   100   100   000    Old_age   Always       -       0+ o3 U5 {7 k$ X# b3 Z3 N8 W9 X
184 End-to-End_Error                                                 0x0033   100   100   097    Pre-fail  Always       -       0
% E( A6 A/ u7 |4 B2 {$ I8 q187 Reported_Uncorrect                                               0x0032   100   100   000    Old_age   Always       -       0$ S$ `5 H$ ^0 q/ `9 z5 V. h
188 Command_Timeout                                                  0x0032   100   100   000    Old_age   Always       -       0( s+ M6 n  g! C/ t- x
189 High_Fly_Writes                                                  0x003a   100   100   000    Old_age   Always       -       0
+ m8 k9 _0 F& a( Q- H. t190 Airflow_Temperature_Cel                                          0x0022   064   045   045    Old_age   Always   In_the_past 36 (Min/Max 36/40)
2 Y3 p1 {' s- B: V* `+ j: j191 G-Sense_Error_Rate                                               0x0032   100   100   000    Old_age   Always       -       10
/ E, ~& n' [# I! G2 o9 m' `% ]192 Power-Off_Retract_Count                                          0x0022   100   100   000    Old_age   Always       -       22( u5 F( ?) J! M9 n2 V
193 Load_Cycle_Count                                                 0x0032   100   100   000    Old_age   Always       -       5061 J: ~4 v" I+ j( _" T) `
194 Temperature_Celsius                                              0x0022   036   055   000    Old_age   Always       -       36 (0 18 0 0 0)
5 o& h& P# x$ z$ N196 Reallocated_Event_Count                                          0x0032   100   100   000    Old_age   Always       -       02 z, Y4 m' k2 V& `, Z+ X% M6 k6 Z, F
197 Current_Pending_Sector                                           0x0032   100   100   000    Old_age   Always       -       0
( b1 F1 R8 i) Y( G1 c5 F7 d9 r' q  t198 Offline_Uncorrectable                                            0x0030   100   100   000    Old_age   Offline      -       0
' @  q: {* {. G* e199 UDMA_CRC_Error_Count                                             0x0032   200   200   000    Old_age   Always       -       0  A/ j8 Q( }% v) p2 B, _. }4 G/ s" v
254 Free_Fall_Sensor                                                 0x0032   100   100   000    Old_age   Always       -       05 k, _2 Z; b( w( W: P
4 [7 Q. @5 [, O

# [! B  G6 x2 m1 q/ ^$ wSMART Error Log Version: 1" x/ d( m) c2 g( {$ a
No Errors Logged1 t  f1 F' p2 R. J, G* y6 w- _

) N- `+ j. ?) T( k) G  |
1 x' G& h9 a- I; L
SMART Self-test log structure revision number 1& H9 x; j! X0 W" A
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
! I  m9 A# ^7 I! y# 1  Short offline       Completed without error       00%      8725         -) J  w6 R  a& T& n0 F' r; u  Z! ]
# 2  Short offline       Completed without error       00%      8175         -( c) l# m  F! L9 [9 r- V
# 3  Short offline       Completed without error       00%      7455         -$ Z, _) [  _  I5 y; R1 i
# 4  Short offline       Completed without error       00%      6712         -
2 `8 x% a1 ?2 d, ^* x% f, R( V; n# 5  Short offline       Completed without error       00%      5992         -+ b5 a7 p( z1 |
# 6  Short offline       Completed without error       00%      5248         -
7 K% d' k7 ^* H0 G; R# 7  Short offline       Completed without error       00%      4576         -% h: B" L* x; ?+ d. ], [  k' Q  q
# 8  Short offline       Completed without error       00%      3834         -
2 \5 b# |1 j+ t+ B( s8 P# 9  Short offline       Completed without error       00%      3090         -0 ?% K: M9 `3 H0 Q8 w
#10  Short offline       Completed without error       00%      2975         -0 |* D; D8 [6 y: ^0 {+ G$ {
#11  Short offline       Completed without error       00%      2255         -
0 Y& l; K8 ?1 v! u/ u#12  Short offline       Completed without error       00%      1511         -
( i7 c  T  ]& r" q8 T  H#13  Short offline       Completed without error       00%       769         -5 W1 _- q- b* y# A, E3 V
#14  Short offline       Completed without error       00%        68         -# ^$ [( G# q; m# v/ M: R
#15  Short offline       Completed without error       00%        26         -$ M% U* t# j7 S
#16  Short offline       Completed without error       00%         1         -( `8 K- J- O+ ~. O( e5 f

, g( W8 S& ^6 u1 i; \

) H! R  m/ ?- n( B* XSMART Selective self-test log data structure revision number 1' }/ F+ P' v5 }' {  L
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS& l2 P; ?) j* V
    1        0        0  Not_testing
3 K% R( b2 o8 ]    2        0        0  Not_testing
# G* J# ]- A+ E: ]* |$ _    3        0        0  Not_testing( W% P5 h% V2 R/ D2 Z
    4        0        0  Not_testing
- m) |' `- y0 v; y1 m  v" B    5        0        0  Not_testing" E- x  w# t, H0 L: @$ z" G
Selective self-test flags (0x0):
: \& R- }6 J. J% E! O- e2 \  After scanning selected spans, do NOT read-scan remainder of disk.
  D6 g# F" _; t( sIf Selective self-test is pending on power-up, resume after 0 minute delay.+ x- e" q0 ^# s4 ^) E

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-6-2 20:07:24 | 显示全部楼层 IP:–广东–东莞 电信
root@maopan:~# cd /tmp/jioben
' X" F# _- g8 x; m9 U& {root@maopan:/tmp/jioben# bash ledfan.sh# u7 H# X/ ?  U4 \* Z' Q
ledfan.sh: line 23: [: -ge: unary operator expected- F3 P! d, b; U; u
ledfan.sh: line 37: [: -ge: unary operator expected6 j/ b8 T/ M% ?" a& w7 U4 Q
ledfan.sh: line 51: [: -lt: unary operator expected4 E6 \$ p! Y4 V: b* b# o3 w
ledfan.sh: line 23: [: -ge: unary operator expected
- q& w# K$ _" }- w5 uledfan.sh: line 37: [: -ge: unary operator expected
) S  G3 E" l, R& y: ?( `ledfan.sh: line 51: [: -lt: unary operator expected
: V7 H, w, ^5 z$ V# s搞不定

0

主题

3

回帖

11

积分

初级渣柚V1

积分
11
QQ
下一页 发表于 2022-6-4 11:36:19 | 显示全部楼层 IP:–甘肃–兰州 电信
感谢大佬$ A2 w( d3 J% P& 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-6-12 17:10 , Processed in 0.073428 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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