16-03-2021
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user