Skip to content

Commit

Permalink
Update start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shawaj authored Nov 28, 2024
1 parent 96d6585 commit 06044b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wingbits/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ echo " "

# Variables are verified – continue with startup procedure.

# Place correct station ID in config.json
# Place correct station ID in config.json and /etc/wingbits/device
station="$(jq --arg a "$WINGBITS_DEVICE_ID" '.station = $a' $WINGBITS_PATH/config.json)"
echo -E "${station}" > $WINGBITS_PATH/config.json
echo -E "${WINGBITS_DEVICE_ID}" > $WINGBITS_PATH/device

# Move to wingbits folder
cd $WINGBITS_PATH
Expand Down

0 comments on commit 06044b2

Please sign in to comment.