File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ A collection of simple Bash scripts.
38
38
1 . [ CollectNetworkInfo.sh] ( scripts/collectnetworkinfo.sh ) : gather information related to server
39
39
1 . [ RemoteBackup.sh] ( scripts/remotebackup.sh ) : backup a local file into a remote server
40
40
1 . [ HardwareInfo.sh] ( scripts/hardware_machine.sh ) : show hardware information for systems Linux
41
+ 1 . [ Get-Temperature.sh] ( scripts/get-temperature.sh ) : show CPU temperature
41
42
42
43
## Math
43
44
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- arr=(' -' ' | ' ' / ' ' - ' ' \ ' ' | ' )
3
+ arr=(' -' ' \ ' ' | ' ' / ' )
4
4
while true ; do
5
5
for c in " ${arr[@]} " ; do
6
6
printf " \r %c " $c
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ TEMP_FILE=/sys/class/thermal/thermal_zone0/temp
4
+
5
+ ORIGINAL_TEMP=$( cat $TEMP_FILE )
6
+ TEMP_C=$(( ORIGINAL_TEMP/ 1000 ))
7
+ TEMP_F=$(( $TEMP_C * 9 / 5 + 32 ))
8
+
9
+ echo $TEMP_F F
10
+
You can’t perform that action at this time.
0 commit comments