From 06044b2185d2d3e602f3227fbb83f07384ad2a94 Mon Sep 17 00:00:00 2001 From: Aaron Shaw Date: Thu, 28 Nov 2024 19:17:02 +0000 Subject: [PATCH] Update start.sh --- wingbits/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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