From 2298a84506a1b76a0c9604672d85e5c0e647b70e Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Tue, 21 Sep 2004 10:47:25 +0000 Subject: removed some uncommented lines machine specific inittab for MNCI "Ramses" BKrev: 415006bdQOhoDjwmMdtKGOxatUo-TQ --- sysvinit/sysvinit_2.85.oe | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'sysvinit/sysvinit_2.85.oe') diff --git a/sysvinit/sysvinit_2.85.oe b/sysvinit/sysvinit_2.85.oe index 128d3224dd..4f798ca636 100644 --- a/sysvinit/sysvinit_2.85.oe +++ b/sysvinit/sysvinit_2.85.oe @@ -24,12 +24,11 @@ S = "${WORKDIR}/sysvinit-${PV}/src" CFLAGS_prepend = "-D_GNU_SOURCE " export LCRYPT = "-lcrypt" + do_install () { install -d ${D}/${bindir} ${D}/${sbindir} \ ${D}/sbin ${D}/${sysconfdir}/default \ ${D}/${sysconfdir}/init.d -# install -m 755 debian/sysv-rc/sbin/invoke-rc.d \ -# debian/sysv-rc/sbin/update-rc.d ${D}${sbindir}/ install -m 755 halt killall5 \ runlevel shutdown ${D}/sbin/ install -m 755 init ${D}/sbin/sysvinit @@ -41,10 +40,6 @@ do_install () { ln -sf init ${D}/sbin/telinit ln -sf killall5 ${D}/sbin/pidof ln -sf last ${D}${bindir}/lastb -# echo "/etc/inittab" > ${D}/CONTROL/conffiles -# echo "/etc/default/rcS" >> ${D}/CONTROL/conffiles -# install -m 0755 ${FILESDIR}/prerm ${D}/CONTROL/ -# install -m 0755 ${FILESDIR}/postinst ${D}/CONTROL/ install -m 0644 ${WORKDIR}/inittab ${D}/${sysconfdir}/inittab if [ ! -z "${SERIAL_CONSOLE}" ]; then echo "S:2345:respawn:/sbin/getty ${SERIAL_CONSOLE}" >> ${D}/etc/inittab @@ -70,20 +65,26 @@ EOF install -m 0755 ${WORKDIR}/rcS ${D}/etc/init.d } -pkg_postinst () { - set -e -# FIXME: use update-alternatives.. but what if the user doesnt have it? -# if [ -n "`which update-alternatives 2>/dev/null`" ]; then -# update-alternatives blah -# else - ln -sf sysvinit $D/sbin/init -# fi - exit 0 +do_install_append_ramses () { + cat <>${D}/etc/inittab +# Bluetooth +#1:2345:respawn:/sbin/getty -L 115200 tts/1 +# External serial port +4:2345:respawn:/sbin/getty -L 115200 tts/4 +# Framebuffer +v1:2345:respawn:/sbin/getty -L 115200 vc/1 +EOF } -#pkg_prerm () { -# set -e -# FIXME: use update-alternatives -# exit 0 -#} + +pkg_postinst () { +set -e +# FIXME: use update-alternatives.. but what if the user doesnt have it? +#if [ -n "`which update-alternatives 2>/dev/null`" ]; then +# update-alternatives blah +#else + ln -sf sysvinit $D/sbin/init +#fi +exit 0 +} -- cgit v1.2.3