summaryrefslogtreecommitdiff
path: root/repo/system/bootscripts.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-17 22:43:31 +0000
committerdavidovski <david@davidovski.xyz>2022-01-17 22:43:31 +0000
commit319ca03a33f9ec728ea87349ebd627ba02aab56f (patch)
treef1e7ded7d541073203ad488dfea6ecddbd222f35 /repo/system/bootscripts.xibuild
parent93efc21a715ecbc4f2a0c1325488369697c2ff8d (diff)
added linux and system configs
Diffstat (limited to 'repo/system/bootscripts.xibuild')
-rw-r--r--repo/system/bootscripts.xibuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/system/bootscripts.xibuild b/repo/system/bootscripts.xibuild
index a6a716a..112c7ac 100644
--- a/repo/system/bootscripts.xibuild
+++ b/repo/system/bootscripts.xibuild
@@ -8,4 +8,35 @@ DESC="Bootscripts to initiate the system on boot (from lfs)"
package () {
make DESTDIR=$PKG_DEST install
+
+ cat > $PKG_DEST/etc/inittab << "EOF"
+# Begin /etc/inittab
+
+id:3:initdefault:
+
+si::sysinit:/etc/rc.d/init.d/rc S
+
+l0:0:wait:/etc/rc.d/init.d/rc 0
+l1:S1:wait:/etc/rc.d/init.d/rc 1
+l2:2:wait:/etc/rc.d/init.d/rc 2
+l3:3:wait:/etc/rc.d/init.d/rc 3
+l4:4:wait:/etc/rc.d/init.d/rc 4
+l5:5:wait:/etc/rc.d/init.d/rc 5
+l6:6:wait:/etc/rc.d/init.d/rc 6
+
+ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
+
+su:S016:once:/sbin/sulogin
+
+1:2345:respawn:/sbin/agetty --noclear tty1 9600
+2:2345:respawn:/sbin/agetty tty2 9600
+3:2345:respawn:/sbin/agetty tty3 9600
+4:2345:respawn:/sbin/agetty tty4 9600
+5:2345:respawn:/sbin/agetty tty5 9600
+6:2345:respawn:/sbin/agetty tty6 9600
+
+# End /etc/inittab
+EOF
+
+
}