path: root/src/rootfs_skel/etc/inittab
diff options
Diffstat (limited to 'src/rootfs_skel/etc/inittab')
1 files changed, 17 insertions, 12 deletions
diff --git a/src/rootfs_skel/etc/inittab b/src/rootfs_skel/etc/inittab
index 5a1f1e8..95d11b8 100644
--- a/src/rootfs_skel/etc/inittab
+++ b/src/rootfs_skel/etc/inittab
@@ -1,24 +1,29 @@
-# Initial system critical filesystems mounting (/proc, /dev, /sys, etc.)
-::sysinit:/sbin/openrc sysinit
+# Filesystem
+null::sysinit:/bin/mount -o remount,rw /
+null::sysinit:/bin/mount -t proc proc /proc
+null::sysinit:/bin/mount -a
-# Goto other runlevels now
-::wait:/sbin/openrc boot
-::wait:/sbin/openrc default
+# Networking
+null::sysinit:/bin/hostname -F /etc/hostname
+null::sysinit:/sbin/ifconfig lo up
+null::sysinit:/sbin/route add -net netmask lo
-# Put a getty on the serial port
+# Runlevel script
+# Serial console
ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
-# Logging junk
null::sysinit:/bin/touch /var/log/messages
null::respawn:/sbin/syslogd -n -m 0
null::respawn:/sbin/klogd -n
+#tty3::respawn:/usr/bin/tail -f /var/log/messages
-# What to do at the "Three Finger Salute"
-# Stuff to do before rebooting
-null::shutdown:/sbin/openrc shutdown
+# Reboot
+null::shutdown:/usr/bin/killall klogd
+null::shutdown:/usr/bin/killall syslogd
null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a