commit 76425ab

hovercats  ·  2023-02-20 14:19:34 +0000 UTC
parent e2d30aa
add rcinit script
1 files changed,  +14, -0
A rcinit
A rcinit
+14, -0
 1@@ -0,0 +1,14 @@
 2+#!/bin/rc
 3+
 4+# Check if PID is 1
 5+if	(test $pid -eq 1) {
 6+	/etc/rc.init 
 7+}
 8+if not {
 9+	exit 1
10+}
11+
12+# Wait forever, so the script doesnt exit by itself
13+while (){
14+	wait
15+}