diff --git a/cfg/rc.cfg b/cfg/rc.cfg deleted file mode 100644 index 66d4b67..0000000 --- a/cfg/rc.cfg +++ /dev/null @@ -1 +0,0 @@ -{enabled={"getty","minitel","fsmanager"}} diff --git a/lib/pkgman.lua b/lib/pkgman.lua index e9b5ce5..c9ef658 100644 --- a/lib/pkgman.lua +++ b/lib/pkgman.lua @@ -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)