fixed temps
This commit is contained in:
1 parent
64902f87b9
commit
857b3da4d2
2 files changed
+18
-17
No files matched your search
@@ -2,8 +2,7 @@
|
||||
import os
|
||||
import misc
|
||||
|
||||
# temps = os.popen("sensors -u").read()
|
||||
temps = "\ncoretemp-isa-0000\nAdapter: ISA adapter\nPackage id 0:\n temp1_input: 37.000\n temp1_max: 80.000\n temp1_crit: 85.000\n temp1_crit_alarm: 0.000\nCore 0:\n temp2_input: 35.000\n temp2_max: 80.000\n temp2_crit: 85.000\n temp2_crit_alarm: 0.000\nCore 1:\n temp3_input: 31.000\n temp3_max: 80.000\n temp3_crit: 85.000\n temp3_crit_alarm: 0.000\n\nnouveau-pci-0100\nAdapter: PCI adapter\nGPU core:\n in0_input: 0.980\n in0_min: 0.830\n in0_max: 1.000\ntemp1:\n temp1_input: 47.000\n temp1_max: 95.000\n temp1_max_hyst: 3.000\n temp1_crit: 105.000\n temp1_crit_hyst: 5.000\n temp1_emergency: 135.000\n temp1_emergency_hyst: 5.000"
|
||||
temps = os.popen("sensors -u").read()
|
||||
temps = temps.split('\n')
|
||||
lastline = False
|
||||
out = ""
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
#!/bin/bash
|
||||
cp *-* /etc/update-motd.d/
|
||||
$dest=/etc/update-motd.d
|
||||
cp *-* $dest/
|
||||
cp misc.py $dest/
|
||||
|
||||
chmod -x /etc/update-motd.d/*
|
||||
chmod -x $dest/*
|
||||
|
||||
chmod +x /etc/update-motd.d/00-header
|
||||
chmod +x /etc/update-motd.d/05-logo
|
||||
chmod +x /etc/update-motd.d/10-uptime
|
||||
chmod +x /etc/update-motd.d/18-mounts
|
||||
chmod +x /etc/update-motd.d/19-temps
|
||||
# chmod +x /etc/update-motd.d/20-services
|
||||
# chmod +x /etc/update-motd.d/22-pm2
|
||||
chmod +x /etc/update-motd.d/90-updates-available
|
||||
chmod +x /etc/update-motd.d/91-release-upgrade
|
||||
chmod +x /etc/update-motd.d/92-unattended-upgrades
|
||||
chmod +x /etc/update-motd.d/95-hwe-eol
|
||||
chmod +x /etc/update-motd.d/98-fsck-at-reboot
|
||||
chmod +x /etc/update-motd.d/98-reboot-required
|
||||
chmod +x $dest00/-header
|
||||
chmod +x $dest05/-logo
|
||||
chmod +x $dest10/-uptime
|
||||
chmod +x $dest18/-mounts
|
||||
chmod +x $dest19/-temps
|
||||
# chmod +x $dest20-services
|
||||
# chmod +x $dest22-pm2
|
||||
chmod +x $dest90/-updates-available
|
||||
chmod +x $dest91/-release-upgrade
|
||||
chmod +x $dest92/-unattended-upgrades
|
||||
chmod +x $dest95/-hwe-eol
|
||||
chmod +x $dest98/-fsck-at-reboot
|
||||
chmod +x $dest98/-reboot-required
|
||||
Reference in new issue
Block a user