Enhance logging for Wake-on-LAN functionality in auto-boot-ollama-host.lua

This commit is contained in:
Bastian (BaM)
2025-09-14 11:07:26 +02:00
parent 62548d2954
commit 8b32856c0d

View File

@@ -90,9 +90,10 @@ local function main()
log(("Detected EHOSTUNREACH for Ollama (%s:%d)."):format(OLLAMA_HOST, OLLAMA_PORT))
if WOL_MAC ~= "" then
log(("Sending WOL to %s via %s:%d"):format(WOL_MAC, WOL_BCAST, WOL_PORT))
local ok, err = send_wol(WOL_MAC, WOL_BCAST, WOL_PORT)
if ok then
log(("Sent WOL to %s via %s:%d"):format(WOL_MAC, WOL_BCAST, WOL_PORT))
log(("Sucessfully sent WOL to %s via %s:%d"):format(WOL_MAC, WOL_BCAST, WOL_PORT))
else
log("WOL failed: " .. tostring(err))
end