summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-22 02:03:23 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-22 02:03:23 +0000
commitca36dff790d1776b82b4e114279d1d6a99d7ff27 (patch)
tree7c57ccec3b2f65508485f10cc6f97635b238c0ab /sys-apps/sysvinit
parentinitial import (diff)
downloadgentoo-2-ca36dff790d1776b82b4e114279d1d6a99d7ff27.tar.gz
gentoo-2-ca36dff790d1776b82b4e114279d1d6a99d7ff27.tar.bz2
gentoo-2-ca36dff790d1776b82b4e114279d1d6a99d7ff27.zip
add support for munging inittab based upon arch
(Portage version: 2.0.53)
Diffstat (limited to 'sys-apps/sysvinit')
-rw-r--r--sys-apps/sysvinit/files/inittab3
-rw-r--r--sys-apps/sysvinit/sysvinit-2.86-r3.ebuild18
2 files changed, 12 insertions, 9 deletions
diff --git a/sys-apps/sysvinit/files/inittab b/sys-apps/sysvinit/files/inittab
index 9d7cbc998f27..b06abfc9ee97 100644
--- a/sys-apps/sysvinit/files/inittab
+++ b/sys-apps/sysvinit/files/inittab
@@ -7,7 +7,7 @@
# Modified by: Daniel Robbins, <drobbins@gentoo.org>
# Modified by: Martin Schlemmer, <azarah@gentoo.org>
#
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab,v 1.4 2005/10/04 14:47:44 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab,v 1.5 2005/12/22 02:03:23 vapier Exp $
# Default runlevel.
id:3:initdefault:
@@ -49,4 +49,3 @@ ca:12345:ctrlaltdel:/sbin/shutdown -r now
# to the "default" runlevel.
x:a:once:/etc/X11/startDM.sh
-# End of /etc/inittab
diff --git a/sys-apps/sysvinit/sysvinit-2.86-r3.ebuild b/sys-apps/sysvinit/sysvinit-2.86-r3.ebuild
index 4c9b13f551ac..20dfd6abbb38 100644
--- a/sys-apps/sysvinit/sysvinit-2.86-r3.ebuild
+++ b/sys-apps/sysvinit/sysvinit-2.86-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.86-r3.ebuild,v 1.2 2005/12/07 04:57:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.86-r3.ebuild,v 1.3 2005/12/22 02:03:23 vapier Exp $
inherit eutils toolchain-funcs flag-o-matic
@@ -32,15 +32,19 @@ src_unpack() {
cd src
epatch "${FILESDIR}"/${PV}-gentoo.patch
use selinux && epatch "${FILESDIR}"/${PV}-selinux.patch
- cp "${FILESDIR}"/inittab "${WORKDIR}"/ || die "cp inittab"
+ # Mung inittab for specific architectures
+ cd "${WORKDIR}"
+ cp "${FILESDIR}"/inittab . || die "cp inittab"
+ local insert=""
if use ibm ; then
- cat <<-EOF >> "${WORKDIR}"/inittab
- #HVC / HVSI CONSOLE
- #hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0
- #hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0
- EOF
+ insert="#hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0"$'\n'
+ insert="${insert}#hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0"
fi
+ use arm && insert='#f0:12345:respawn:/sbin/agetty 9600 ttyFB0 vt100'
+ use hppa && insert='b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100'
+ (use arm || use mips || use sh || use sparc) && sed -i '/ttyS0/s:#::' inittab
+ [[ -n ${insert} ]] && echo "# Architecture specific features"$'\n'"${insert}" >> inittab
}
src_compile() {