16-03-2021

This commit is contained in:
2021-03-16 06:57:22 +01:00
parent fb07a20b0c
commit e02b036875
27 changed files with 1860 additions and 128 deletions

View File

@@ -39,4 +39,42 @@ cat /proc/cpuinfo
Revision : 0003
```
Voir le modèle correspondant à la révision [ici](https://elinux.org/RPi_HardwareHistory).
Voir le modèle correspondant à la révision [ici](https://elinux.org/RPi_HardwareHistory).
### Lancer un programme au démarrage:
Il faut éditer le fichier `/etc/rc.local`
```bash
sudo nano /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
'/home/pi/Documents/scripts/bashrc -> Nextcloud.sh &'
exit 0
```
Le programme doit être mis avant la ligne exit 0.
Le programme (sans GUI) sera exécuté par root avant que X démarre, les chemins doivent être absolus.