Creation repo sue RPi3

This commit is contained in:
Bruno 21
2019-02-04 10:14:50 +01:00
commit fb93c53f4f
31 changed files with 659 additions and 0 deletions

49
RPi_info.sh Executable file
View File

@@ -0,0 +1,49 @@
#/bin/bash
echo -e "\033[1;31mMy Raspberry...\033[0m"
echo
echo $(date)
echo
echo -e "\033[1;93mVersion of Debian:\033[0m"
cat /etc/debian_version
echo
echo -e "\033[1;93mOS Release Notes:\033[0m"
cat /etc/os-release
echo
echo -e "\033[1;93mKernel version:\033[0m"
uname -a
echo
echo -e "\033[1;93mHarware version:\033[0m"
cat /proc/cpuinfo
echo
# Ajout de tr sinon avertissement :command substitution: ignored null byte in input
model=$(cat /proc/device-tree/model | tr '\0' '\n')
if [ -n "$model" ]; then
echo -e "\033[1m$model\033[0m"
else
revision=$(cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^1000//')
echo "Revision: $revision"
echo "Voir https://elinux.org/RPi_HardwareHistory pour connaitre le modele."
fi
echo
if [ -x "$(command -v pinout)" ]; then
pinout
fi
echo
echo -e "\033[1;93mCurrent firmware version:\033[0m"
vcgencmd version
echo
if [ -x "$(command -v rpi-update)" ]; then
echo -e "\033[1;93mCommints since last update (available update ?):\033[0m"
sudo JUST_CHECK=1 rpi-update
echo
fi
# ./RPi_info.sh > RPi_DietPi_info_`date +%d-%m-%Y`.txt