From 604532eb6c5591cb5e364ead6ca903d3df6cc12b Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Wed, 9 Jan 2019 17:11:10 +1100 Subject: [PATCH] replaced the dummy fd with one that logs to a file --- module/createterms.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/module/createterms.lua b/module/createterms.lua index ad73fab..8fdaa37 100644 --- a/module/createterms.lua +++ b/module/createterms.lua @@ -7,11 +7,5 @@ for a,_ in component.list("gpu") do fd[#fd+1] = {["read"]=r,["write"]=w,["close"]=function() w("\27[2J\27[H") end,["t"]="t"} end if #fd < 1 then - local fdi,nfd = io.newfd() - function nfd.read() - end - function nfd.write() - end - function nfd.close() - end + io.open("/boot/console.log","a") end