6 changed files with 93 additions and 9 deletions
@ -0,0 +1,10 @@ |
|||||
|
cpu=$(</sys/class/thermal/thermal_zone0/temp) |
||||
|
|
||||
|
vccmd=$(which vcgencmd) |
||||
|
gpu=$(${vccmd} measure_temp) |
||||
|
gpu=$(echo "${gpu}"| sed 's|temp\=||g') |
||||
|
|
||||
|
echo "$(date) @ $(hostname)" |
||||
|
echo "-------------------------------------------" |
||||
|
echo "GPU => ${gpu}" |
||||
|
echo "CPU => $((cpu/1000))'C" |
@ -0,0 +1,21 @@ |
|||||
|
# System-Updater CC-BY Olli Graf |
||||
|
# V 1.6 2019 |
||||
|
|
||||
|
VERSION="1.7" |
||||
|
TMPFILE="/tmp/updater.txt" |
||||
|
|
||||
|
echo "Updater V ${VERSION}" |
||||
|
sudo rm -f ${TMPFILE} |
||||
|
sudo apt-get update |
||||
|
sudo apt-get dist-upgrade -y --allow-unauthenticated |tee ${TMPFILE} |
||||
|
sudo snap refresh |
||||
|
sudo apt-get autoremove -y |
||||
|
if grep -q linux-header ${TMPFILE}; then |
||||
|
echo "reboot nötig" |
||||
|
read -n1 -p "Neustart? (J/N)" auswahl |
||||
|
if [ "${auswahl}" == "j" ]; then |
||||
|
echo "System wird gestartet." |
||||
|
sudo reboot |
||||
|
fi |
||||
|
|
||||
|
fi |
Loading…
Reference in new issue