diff --git a/boot_hotspot.sh b/boot_hotspot.sh index 0e2e0c7..2ecc460 100755 --- a/boot_hotspot.sh +++ b/boot_hotspot.sh @@ -5,12 +5,27 @@ OUTPUT_FILE="/var/www/nebuleair_pro_4g/wifi_list.csv" JSON_FILE="/var/www/nebuleair_pro_4g/config.json" + + echo "-------------------" echo "-------------------" echo "NebuleAir pro started at $(date)" -echo "getting SARA R4 serial number" +# Blink GPIO 23 and 24 five times +for i in {1..5}; do + # Turn GPIO 23 and 24 ON + gpioset gpiochip0 23=1 24=1 + echo "LEDs ON" + sleep 1 + + # Turn GPIO 23 and 24 OFF + gpioset gpiochip0 23=0 24=0 + echo "LEDs OFF" + sleep 1 +done + +echo "getting SARA R4 serial number" # Get the last 8 characters of the serial number and write to text file serial_number=$(cat /proc/cpuinfo | grep Serial | awk '{print substr($3, length($3) - 7)}') # Define the JSON file path diff --git a/html/admin.html b/html/admin.html index f00bb1b..715ac02 100755 --- a/html/admin.html +++ b/html/admin.html @@ -60,22 +60,22 @@