mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-12-24 19:59:20 -05:00
pkgman updates to simplify distribution with different kernels
This commit is contained in:
parent
ae41cc48dd
commit
82decfabf9
@ -1 +0,0 @@
|
||||
{enabled={"getty","minitel","fsmanager"}}
|
@ -10,6 +10,8 @@ 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")
|
||||
@ -27,7 +29,7 @@ end
|
||||
|
||||
local function getInstalled()
|
||||
local f = io.open(pkg.installedPath,"rb")
|
||||
if not f then return {} end
|
||||
if not f then return {psychos={version=kver},["kernel-"..kvar]={version=kver}} end
|
||||
local c = f:read("*a")
|
||||
f:close()
|
||||
return serial.unserialize(c)
|
||||
|
Loading…
Reference in New Issue
Block a user