From a97e3c93ee727ef100d9ea4846530537f89367b4 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 9 Nov 2019 14:59:53 +1100 Subject: [PATCH] made init not kill itself on startup --- exec/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/init.lua b/exec/init.lua index c60aa7d..d1a24f0 100644 --- a/exec/init.lua +++ b/exec/init.lua @@ -1,4 +1,4 @@ -if os.taskInfo(1) then +if os.taskInfo(1) and os.pid() ~= 1 then return false, "init already started" end os.setenv("PWD","/boot")