1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-22 03:54:20 -05:00

Compare commits

..

No commits in common. "82decfabf964c1e9637290995cd023a0f8def025" and "ff7ec50a94cfa036d1472a9bbb3b8e77d96e60b5" have entirely different histories.

5 changed files with 5 additions and 6 deletions

1
cfg/rc.cfg Normal file
View File

@ -0,0 +1 @@
{enabled={"getty","minitel","fsmanager"}}

View File

@ -30,7 +30,7 @@ function mtar.iter(stream) -- table -- function -- Given buffer *stream*, return
end
return function()
while remain > 0 do
remain=remain-(#stream:read(math.min(remain,2048)) or "")
remain=remain-#stream:read(math.min(remain,2048))
end
local version = 0
local nlen = string.unpack(">I2", stream:read(2) or "\0\0")

View File

@ -10,8 +10,6 @@ if not w then lz16 = nil end
fs.makeDirectory("/boot/pkg")
fs.makeDirectory("/boot/cfg/pkg")
require "pkgfs"
local kver,kvar = _OSVERSION:match("(%x+)%-([^-]-)$")
kver,kvar = kver or "unknown", kvar or "base"
local function getSources()
local f = io.open(pkg.sourcePath,"rb")
@ -29,7 +27,7 @@ end
local function getInstalled()
local f = io.open(pkg.installedPath,"rb")
if not f then return {psychos={version=kver},["kernel-"..kvar]={version=kver}} end
if not f then return {} end
local c = f:read("*a")
f:close()
return serial.unserialize(c)

View File

@ -98,7 +98,7 @@ function vtansi.vtemu(gpu,bn) -- table number -- function -- takes GPU component
cx,cy = 1, cy+1
checkCursor()
elseif cc == "\t" then
wb=wb..(" "):rep((((cx//8)+1) * 8) - cx + 1)
wb=wb..(" "):rep(8*((cx+9)//8))
elseif cc == "\27" then
flushwb()
mode = 1

View File

@ -2,7 +2,7 @@
--#includepkglib "rtfs" "lib/rtfs.lua" "rtfs"
do
local a = computer.getBootAddress()
if component.type(a) == "drive" or component.type(a) == "tape_drive" then
if component.type(a) == "drive" then
local diskpart = require "diskpart"
for k,v in ipairs(diskpart.getPartitions(a)) do
if v[2] == "rtfs" and v[1] == computer.address():sub(1,8) .. "-boot" then