找回密码
 立即注册
楼主: 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

回帖

224

积分

中级渣柚V1

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

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-5-31 22:40:13 | 显示全部楼层 IP:–广东–东莞 电信
我来试试 我的灵不灵$ x5 Z! i1 x* F& H/ z

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-6-2 20:01:17 | 显示全部楼层 IP:–广东–东莞 电信
本帖最后由 wifi之歌 于 2022-6-2 20:05 编辑
0 _# k8 {5 Q+ F/ t7 P% J, L: d5 t) u/ E' i4 k0 Z; ^* |
root@maopan:~# smartctl -a /dev/sda
- h4 r. V; z2 [/ z& Ysmartctl 6.5 (build date Oct  7 2021) [aarch64-linux-4.4.180+] (local build)
8 p0 W# W* _0 mCopyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org3 ]& f5 [. f* D' z3 I5 O- z
; G5 g$ r" }: M5 F; B. k6 z9 i# A# }

9 {, H1 M- p8 m# f( d6 N=== START OF INFORMATION SECTION ===
$ F( f! ]! A; ^9 k$ X/ J" MModel Family:     Seagate Laptop HDD
  ]& D$ J! _$ B1 R$ FDevice Model:     ST500LM021-1KJ1524 B% r6 Z, R1 u8 m- ^' C5 [
Serial Number:    W62BXE1T
8 w5 H. j; y( HLU WWN Device Id: 5 000c50 09b42c816
% Z9 Z& w+ m6 {+ F  m, x$ IFirmware Version: 0002YXM1" w# d# C% Z1 Q+ r: L3 [
User Capacity:    500,107,862,016 bytes [500 GB]! _- |8 r! a: t
Sector Sizes:     512 bytes logical, 4096 bytes physical
/ {$ R# Z0 e9 E* f. W3 ]" iRotation Rate:    7200 rpm" c  x9 R' A/ V8 c8 E5 K- v
Form Factor:      2.5 inches
% y8 O5 P0 Z  b* YDevice is:        In smartctl database [for details use: -P show]
; x$ R' [& h9 f" G5 f/ b% LATA Version is:   ATA8-ACS T13/1699-D revision 4) V( w8 {" ]: ^8 P7 j1 I
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
& S5 e! E' g- Q% Q% i7 o2 e" U- sLocal Time is:    Thu Jun  2 19:37:36 2022 CST6 H, ^3 J, }' o. B$ q4 e
SMART support is: Available - device has SMART capability.
( a. {3 a+ ^$ K3 B4 W" NSMART support is: Enabled/ X0 t: f. {: T

! h1 t- Z/ L; S% R+ d9 A% g  j

' Z6 w+ A: U- i5 Z  [=== START OF READ SMART DATA SECTION ===
5 t' Q7 }* L- u2 ZSMART overall-health self-assessment test result: PASSED
4 }, A, s" Y: ^) oSee vendor-specific Attribute list for marginal Attributes.
, B: X4 I" C/ U( H" i8 \: L- j% q9 ^+ M" U6 K  t. d

- a+ t9 W- c# U" @General SMART Values:. A  }1 `9 c  d0 B: a' k& G
Offline data collection status:  (0x82) Offline data collection activity
4 H: L! z9 \+ d4 w                                        was completed without error.6 r  m; G2 |0 F0 Y- x4 o
                                        Auto Offline Data Collection: Enabled.  r5 I6 u) g3 p5 u# y: R# ?- W
Self-test execution status:      (   0) The previous self-test routine completed' W4 J# z1 O# C) ~+ }
                                        without error or no self-test has ever
+ `8 B" X* K0 H  ^  T7 x                                        been run.
- R  F1 m) s5 W7 J- n: W# aTotal time to complete Offline! s8 H  M6 i. \3 A( h8 r* |
data collection:                (    0) seconds.
- j* y. E2 F6 Z8 iOffline data collection
( I/ @+ j8 {! C. s! |capabilities:                    (0x5b) SMART execute Offline immediate.
& l1 \4 |% h5 t0 d; p5 R7 l5 [2 O                                        Auto Offline data collection on/off support.9 M8 I0 @% S& r8 \$ i. o2 s8 _
                                        Suspend Offline collection upon new$ `, ^4 U/ t& V" J7 R1 }2 k
                                        command.
8 Z, C: A" A) R. Z3 J$ c                                        Offline surface scan supported.
1 h/ H6 p$ B* R7 x9 c& w                                        Self-test supported.' [# U, ?# a- H) @) r+ {
                                        No Conveyance Self-test supported.
- }6 \$ P: R" g  y" S* q                                        Selective Self-test supported.) g$ _* L, R. j
SMART capabilities:            (0x0003) Saves SMART data before entering4 N! J, H, e; N3 i3 y5 j; E! I5 y
                                        power-saving mode.  X4 ]7 W) ^4 X$ ]: m4 A7 X  `3 s
                                        Supports SMART auto save timer.+ W0 o; g/ ~  e3 E/ D% w) }8 k+ c
Error logging capability:        (0x01) Error logging supported.
. N4 f6 b9 p  c# R4 ~- H                                        General Purpose Logging supported.
: r9 f% X5 m* ^) NShort self-test routine
% p5 }- ]) u5 R$ p8 V# X7 y! d+ Jrecommended polling time:        (   2) minutes., F' B% L# b; l7 A& G
Extended self-test routine3 w- H- @2 G1 i# V+ A0 k- g; L, V2 a) w: R
recommended polling time:        (  78) minutes.
) G2 O/ J" H: kSCT capabilities:              (0x103d) SCT Status supported.
! v  J$ s4 X. f! p7 \% `                                        SCT Error Recovery Control supported.
$ B; e+ ~$ L; d# l2 V+ C                                        SCT Feature Control supported.
+ f' y& f  j. ~2 k+ T$ q9 R                                        SCT Data Table supported.
* z) V6 j$ A3 T- W* Q
6 ?; i+ `! f7 C; L2 t. X/ G
/ h0 ~( F  y+ z. _9 U0 R
SMART Attributes Data Structure revision number: 10
& [- R# X" B; u2 v/ N0 `3 ~5 e8 [/ oVendor Specific SMART Attributes with Thresholds:
2 E' v2 ^4 R; }ID# ATTRIBUTE_NAME                                                   FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE* }& v1 \0 e# g; d5 p) S& L7 w; M
  1 Raw_Read_Error_Rate                                              0x002f   119   100   006    Pre-fail  Always       -       2291696404 u% M2 T; u$ G& V
  3 Spin_Up_Time                                                     0x0023   098   098   000    Pre-fail  Always       -       0( W( |. u: t$ r- Y, v3 x
  4 Start_Stop_Count                                                 0x0032   100   100   000    Old_age   Always       -       123
5 k; B$ m+ [# O1 i, @9 }  5 Reallocated_Sector_Ct                                            0x0033   100   100   036    Pre-fail  Always       -       0% ~; n6 `7 }3 E. r* F- d
  7 Seek_Error_Rate                                                  0x002f   069   060   030    Pre-fail  Always       -       9159082
( t" T6 n+ y# t7 y3 H& T+ e  9 Power_On_Hours                                                   0x0032   090   090   000    Old_age   Always       -       8847
/ G* l: [/ I/ E" m- i. u 10 Spin_Retry_Count                                                 0x0033   100   100   097    Pre-fail  Always       -       0) e- C1 c* E- \4 v1 o+ d1 ^
12 Power_Cycle_Count                                                0x0032   100   100   000    Old_age   Always       -       119
( o  b2 o, o( \" W183 Runtime_Bad_Block                                                0x0032   100   100   000    Old_age   Always       -       0
% j& b7 M) t" T$ t, s184 End-to-End_Error                                                 0x0033   100   100   097    Pre-fail  Always       -       0
, P" B8 \7 }0 f; u3 a; \187 Reported_Uncorrect                                               0x0032   100   100   000    Old_age   Always       -       09 r% b+ z2 W5 u& l
188 Command_Timeout                                                  0x0032   100   100   000    Old_age   Always       -       0
3 e( z$ _+ f2 g& W/ a$ M. ^; q189 High_Fly_Writes                                                  0x003a   100   100   000    Old_age   Always       -       0
3 L. c3 C2 i1 l6 y; \( h190 Airflow_Temperature_Cel                                          0x0022   064   045   045    Old_age   Always   In_the_past 36 (Min/Max 36/40)
' w! |7 U2 M$ Z& \/ r+ a+ O191 G-Sense_Error_Rate                                               0x0032   100   100   000    Old_age   Always       -       10' I/ E* B) A8 S2 M7 O
192 Power-Off_Retract_Count                                          0x0022   100   100   000    Old_age   Always       -       22( Z* T- x+ B( s" i
193 Load_Cycle_Count                                                 0x0032   100   100   000    Old_age   Always       -       506
0 S1 @0 V9 ], g% E3 U! \194 Temperature_Celsius                                              0x0022   036   055   000    Old_age   Always       -       36 (0 18 0 0 0)
" ^/ |$ X- ]/ Y196 Reallocated_Event_Count                                          0x0032   100   100   000    Old_age   Always       -       0$ F8 d8 Q& @+ ]0 O7 R
197 Current_Pending_Sector                                           0x0032   100   100   000    Old_age   Always       -       0
% b% X2 X6 f" @4 S0 @198 Offline_Uncorrectable                                            0x0030   100   100   000    Old_age   Offline      -       0
! C. r, U; \: U  A199 UDMA_CRC_Error_Count                                             0x0032   200   200   000    Old_age   Always       -       0: H7 U8 @* ?9 L! N
254 Free_Fall_Sensor                                                 0x0032   100   100   000    Old_age   Always       -       0
( g+ Y, p  C2 {0 B! |2 N
8 ~* s$ e; I5 m& M: g

# r8 P" t8 J6 m1 g7 e- H# I5 FSMART Error Log Version: 15 E+ B9 L3 g# H3 u2 P% S
No Errors Logged8 X4 ^8 l. |$ {3 s
) R1 K$ ?0 p/ E, f" K2 P

0 E4 h7 ?/ u7 K, _* u9 }SMART Self-test log structure revision number 1
7 @5 W0 |8 k( \# xNum  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
8 X4 H  O/ x' t# 1  Short offline       Completed without error       00%      8725         -
# t; B- E1 X& D# 2  Short offline       Completed without error       00%      8175         -
* T' z2 H& C" W6 v) K! N# 3  Short offline       Completed without error       00%      7455         -
3 ^% D# w$ @& k+ F/ D8 Z# 4  Short offline       Completed without error       00%      6712         -- L  k5 i" ]' ~7 X' @3 m) U
# 5  Short offline       Completed without error       00%      5992         -/ L4 ?2 d! O: r, R( V3 f
# 6  Short offline       Completed without error       00%      5248         -
/ f) D% Y9 h6 a1 }3 Q# 7  Short offline       Completed without error       00%      4576         -9 y4 W8 C: x. a4 F
# 8  Short offline       Completed without error       00%      3834         -
& |% g+ Z! |- v% ?2 L; u4 K# 9  Short offline       Completed without error       00%      3090         -
0 L# E* S+ M: S#10  Short offline       Completed without error       00%      2975         -
' Q, R# V# }9 v& ]6 L6 ]% c# O#11  Short offline       Completed without error       00%      2255         -0 w% }- \; p5 q! U7 F
#12  Short offline       Completed without error       00%      1511         -" Z7 ~8 `8 S$ Y- O! a8 A& q
#13  Short offline       Completed without error       00%       769         -% C; x: [" c" P7 o: {
#14  Short offline       Completed without error       00%        68         -1 w  T' v- J- J* K/ u" M
#15  Short offline       Completed without error       00%        26         -7 @' m1 d2 u8 \: m8 i
#16  Short offline       Completed without error       00%         1         -" s. g7 s9 p' u4 Y' B

$ p; g1 `6 p# i& T2 Q% D/ d
: }4 D& m4 b' Y9 L1 D; a
SMART Selective self-test log data structure revision number 1
7 k9 x# s+ S( a, \5 @ SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
& j1 t: l3 }/ Q$ i, C3 @    1        0        0  Not_testing+ W: \& @! i- ?7 ^, e( H
    2        0        0  Not_testing( h/ J: C/ w. }8 A
    3        0        0  Not_testing" a* `; j5 t) d" m
    4        0        0  Not_testing# ^9 \7 Q$ j+ Z. I
    5        0        0  Not_testing' l- ~0 ^. |" s4 X" ^
Selective self-test flags (0x0):
% W. V; _. U/ k* g) o% O  After scanning selected spans, do NOT read-scan remainder of disk.
/ n8 ~6 Z2 H; `( q) WIf Selective self-test is pending on power-up, resume after 0 minute delay.) E% C; y2 E) a# y

0

主题

10

回帖

22

积分

初级渣柚V1

积分
22
QQ
wifi之歌 发表于 2022-6-2 20:07:24 | 显示全部楼层 IP:–广东–东莞 电信
root@maopan:~# cd /tmp/jioben& P, A1 }! t; C& v
root@maopan:/tmp/jioben# bash ledfan.sh
1 s6 a4 q5 o$ V/ d4 @+ R' Nledfan.sh: line 23: [: -ge: unary operator expected
: E/ Y6 W5 P3 j6 Q) aledfan.sh: line 37: [: -ge: unary operator expected# V% s# p* A% M3 U. p
ledfan.sh: line 51: [: -lt: unary operator expected
% q( f2 e) v$ D0 jledfan.sh: line 23: [: -ge: unary operator expected
6 ?. }% X1 o& F6 i/ l* Tledfan.sh: line 37: [: -ge: unary operator expected9 c, e  v: r) ]4 d; y
ledfan.sh: line 51: [: -lt: unary operator expected
5 U+ `$ r: [* r' R1 m搞不定

0

主题

3

回帖

11

积分

初级渣柚V1

积分
11
QQ
下一页 发表于 2022-6-4 11:36:19 | 显示全部楼层 IP:–甘肃–兰州 电信
感谢大佬2 R) K8 I! @. |- C$ q

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-11-5 07:13 , Processed in 0.059332 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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