From 6a39fe17430a86cd4f898e7c292c9f0593321123 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 6 Jun 2020 19:50:28 +1000 Subject: [PATCH] made rc search for services in the pkgfs --- lib/rc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rc.lua b/lib/rc.lua index 9c6c084..7bc197a 100644 --- a/lib/rc.lua +++ b/lib/rc.lua @@ -29,7 +29,7 @@ function rc.load(name,force) -- string boolean -- table -- Attempts to load serv end if service[name] then return true end service[name] = setmetatable({},{__index=_G}) - local f = io.open("/boot/service/"..name..".lua","rb") + local f = io.open("/boot/service/"..name..".lua","rb") or io.open("/pkg/service/"..name..".lua","rb") local res = load(f:read("*a"),name,"t",service[name])() f:close() return res