sysvinit: add pandora's inittab
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 17 Dec 2013 23:01:15 +0000 (01:01 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 17 Dec 2013 23:01:15 +0000 (01:01 +0200)
..to get rid of inittab patching in image recipe

conf/machine/omap3-pandora.conf
recipes/sysvinit/sysvinit/omap3-pandora/inittab [new file with mode: 0644]
recipes/sysvinit/sysvinit_2.86.bb

index 52a9288..dd70125 100644 (file)
@@ -28,7 +28,7 @@ MACHINE_DISPLAY_HEIGHT_PIXELS = "480"
 
 IMAGE_FSTYPES = "tar.bz2 ubifs"
 
-SERIAL_CONSOLE = "115200 ttyS0"
+SERIAL_CONSOLE = "115200 ttyS0"
 
 require conf/machine/include/omap3.inc
 
diff --git a/recipes/sysvinit/sysvinit/omap3-pandora/inittab b/recipes/sysvinit/sysvinit/omap3-pandora/inittab
new file mode 100644 (file)
index 0000000..7c05862
--- /dev/null
@@ -0,0 +1,35 @@
+# /etc/inittab: init(8) configuration.
+# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
+
+# The default runlevel.
+id:5:initdefault:
+
+# Boot-time system configuration/initialization script.
+# This is run first except when booting in emergency (-b) mode.
+si::sysinit:/etc/init.d/rcS
+
+# What to do in single-user mode.
+~~:S:wait:/sbin/sulogin
+
+# /etc/init.d executes the S and K scripts upon change
+# of runlevel.
+#
+# Runlevel 0 is halt.
+# Runlevel 1 is single-user.
+# Runlevels 2-5 are multi-user.
+# Runlevel 6 is reboot.
+
+l0:0:wait:/etc/init.d/rc 0
+l1:1:wait:/etc/init.d/rc 1
+l2:2:wait:/etc/init.d/rc 2
+l3:3:wait:/etc/init.d/rc 3
+l4:4:wait:/etc/init.d/rc 4
+l5:5:wait:/etc/init.d/rc 5
+l6:6:wait:/etc/init.d/rc 6
+# Normally not reached, but fallthrough in case of emergency.
+z6:6:respawn:/sbin/sulogin
+
+# support old and new kernels on pandora
+S0:2345:once:/sbin/getty 115200 ttyS0
+O2:2345:once:/sbin/getty 115200 ttyO2
+
index 8e964a1..33e588c 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init."
 SECTION = "base"
 LICENSE = "GPLv2+"
 HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
-PR = "r59"
+PR = "r60"
 
 # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
 # Set PACKAGE_ARCH appropriately.