Browse Source

clignottement lors de la verification des services

master
heuzef 5 years ago
parent
commit
202b44204c
2 changed files with 3 additions and 14 deletions
  1. +0
    -14
      scripts/blink_green.sh
  2. +3
    -0
      scripts/check_services.sh

+ 0
- 14
scripts/blink_green.sh View File

@@ -1,14 +0,0 @@
#!/bin/bash
# Allo-GG
# Blink LED VERTE

for i in {1..10}
do
sleep 1
# ON
/usr/local/bin/gpio -g write 18 0

sleep 1
# OFF
/usr/local/bin/gpio -g write 18 1
done

+ 3
- 0
scripts/check_services.sh View File

@@ -7,6 +7,9 @@ date
echo "********************"
echo

# BLINK for 10 sec
timeout 10 /usr/local/bin/gpio -g blink 18 &

# HORLOGE
if timedatectl status | grep -q 'Time zone: Europe/Paris (CEST, +0200)'
then


Loading…
Cancel
Save