From 00206ef794bf528032978f2f205c661f368545f8 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 22 Mar 2026 03:15:52 -0400 Subject: [PATCH] Add reboot command handling in processCommand function --- inventoryWebBridge.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inventoryWebBridge.lua b/inventoryWebBridge.lua index acf888b..51dff85 100644 --- a/inventoryWebBridge.lua +++ b/inventoryWebBridge.lua @@ -176,6 +176,12 @@ local function processCommand(cmd) commandId = cmd.commandId, recipeIdx = cmd.recipeIdx, }) + elseif action == "reboot" then + modem.transmit(ORDER_CHANNEL, BROADCAST_CHANNEL, { + type = "reboot", + commandId = cmd.commandId, + target = cmd.target or "all", + }) else print("[CMD] Unknown action: " .. tostring(action)) end