Browse Source

replaced the dummy fd with one that logs to a file

XeonSquared 1 month ago
parent
commit
604532eb6c
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      module/createterms.lua

+ 1
- 7
module/createterms.lua View File

@@ -7,11 +7,5 @@ for a,_ in component.list("gpu") do
7 7
  fd[#fd+1] = {["read"]=r,["write"]=w,["close"]=function() w("\27[2J\27[H") end,["t"]="t"}
8 8
 end
9 9
 if #fd < 1 then
10
- local fdi,nfd = io.newfd()
11
- function nfd.read()
12
- end
13
- function nfd.write()
14
- end
15
- function nfd.close()
16
- end
10
+ io.open("/boot/console.log","a")
17 11
 end

Loading…
Cancel
Save