From e2e3b6b91fde6dcbed7072fa967fb8193bf52574 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Wed, 18 Dec 2013 01:01:15 +0200 Subject: [PATCH] sysvinit: add pandora's inittab ..to get rid of inittab patching in image recipe --- conf/machine/omap3-pandora.conf | 2 +- .../sysvinit/sysvinit/omap3-pandora/inittab | 35 +++++++++++++++++++ recipes/sysvinit/sysvinit_2.86.bb | 2 +- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 recipes/sysvinit/sysvinit/omap3-pandora/inittab diff --git a/conf/machine/omap3-pandora.conf b/conf/machine/omap3-pandora.conf index 52a9288204..dd70125952 100644 --- a/conf/machine/omap3-pandora.conf +++ b/conf/machine/omap3-pandora.conf @@ -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 index 0000000000..7c05862e6e --- /dev/null +++ b/recipes/sysvinit/sysvinit/omap3-pandora/inittab @@ -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 + diff --git a/recipes/sysvinit/sysvinit_2.86.bb b/recipes/sysvinit/sysvinit_2.86.bb index 8e964a18f2..33e588c8f1 100644 --- a/recipes/sysvinit/sysvinit_2.86.bb +++ b/recipes/sysvinit/sysvinit_2.86.bb @@ -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. -- 2.39.5