diff --git a/boot_hotspot.sh b/boot_hotspot.sh index 1e7d26b..0a8c6bf 100755 --- a/boot_hotspot.sh +++ b/boot_hotspot.sh @@ -15,19 +15,8 @@ echo "NebuleAir pro started at $(date)" chmod -R 777 /var/www/nebuleair_pro_4g/ -# Blink GPIO 23 and 24 five times -for i in {1..5}; do - # Turn GPIO 23 and 24 ON - gpioset gpiochip0 23=1 - gpioset gpiochip0 24=1 #echo "LEDs ON" - sleep 1 - - # Turn GPIO 23 and 24 OFF - gpioset gpiochip0 23=0 - gpioset gpiochip0 24=0 - #echo "LEDs OFF" - sleep 1 -done +# Blink GPIO 23 and 24 five times (starts OFF, stays OFF at end) +gpioset -c gpiochip0 -t 1s,1s,1s,1s,1s,1s,1s,1s,1s,1s,0 23=0 24=0 echo "getting RPI serial number" # Get the last 8 characters of the serial number and write to text file