|
@@ -1,6 +1,6 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
# Allo-GG |
|
|
# Allo-GG |
|
|
# Demarrage du module |
|
|
|
|
|
|
|
|
# Demarrage du module apres les services : |
|
|
|
|
|
|
|
|
while ! /sbin/ifconfig wlan0 | grep -q 'inet [0-9]'; do |
|
|
while ! /sbin/ifconfig wlan0 | grep -q 'inet [0-9]'; do |
|
|
sleep 3 |
|
|
sleep 3 |
|
@@ -10,16 +10,16 @@ while ! gpio -v | head -n 1 | grep -q 'gpio version:'; do |
|
|
sleep 3 |
|
|
sleep 3 |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
# Configuration des pins en sortie |
|
|
|
|
|
|
|
|
# Configuration des GPIO : |
|
|
|
|
|
|
|
|
# Port de sortie 7 (Porte) |
|
|
|
|
|
|
|
|
# Sortie 7 (Porte) |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
gpio -g write 4 1 |
|
|
gpio -g write 4 1 |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
gpio -g mode 4 out |
|
|
gpio -g mode 4 out |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
|
|
|
|
|
|
# Port de sortie 11 (Sonette) |
|
|
|
|
|
|
|
|
# Sortie 11 (Sonette) |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
gpio -g write 17 1 |
|
|
gpio -g write 17 1 |
|
|
sleep 1 |
|
|
sleep 1 |
|
|