diff --git a/wingbits/start.sh b/wingbits/start.sh index 11dc663..ff23e4b 100644 --- a/wingbits/start.sh +++ b/wingbits/start.sh @@ -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