Hi Paul, A real /etc/inittab is always present, it's part of the etc.lrp package...
Eric >Look at the script. If a real /etc/inittab is present, it doesn't do >its magic. >It only does it if the proto is present and /etc/inittab is not. > >This is one of the most annoying things for a new user to fix if they >don't have a linux system handy. > >I would call it, or hook it into /var/lib/lrpkg/root.<whatever that >script is called> that gets executed before /sbin/init. The script >that loads all the packages at boot time... > > >On Aug 26, 2006, at 1:49 AM, Eric Spakman wrote: > >> Hi Paul, >> >> Hmmm, not sure. I find it a bit of a clutch. What happens if an user >> edit the inittab for other changes like mgetty? >> >> I prefer specific configdb/sylinux.cfg for different hardware where >> also other changes can be done. >> >> Eric >> >>> >>> --Apple-Mail-3-25159442 >>> Content-Type: multipart/mixed; >>> boundary=Apple-Mail-2-25159350 >>> >>> >>> --Apple-Mail-2-25159350 >>> Content-Transfer-Encoding: 7bit >>> Content-Type: application/octet-stream; >>> x-unix-mode=0644; >>> name=fixup_inittab.sh >>> Content-Disposition: attachment; >>> filename=fixup_inittab.sh >>> >>> #!/bin/sh >>> >>> inittab="/etc/inittabX" >>> proto="/etc/inittabX.proto" >>> >>> if [ -f $inittab ] ; then >>> exit 0 >>> fi >>> >>> if [ ! -f $proto ] ; then >>> echo "$0: $proto not missing" >>> exit 1 >>> fi >>> >>> >>> contty=`sed -e 's/.*console=\([^, ]*\).*/\1/' /proc/cmdline` >>> if [ -z "$contty" ] ; then >>> contty="unspecified" >>> speed="38400" >>> else >>> speed=`sed -e 's/.*console=[^, ]*,\([0-9]*\) .*/\1/' /proc/ >>> cmdline` >>> if [ -z "$speed" ] ; then >>> speed="9600" >>> fi >>> fi >>> >>> sed -e "s/^#<${contty}> #\(.*\) <speed> \(.*\)/\1 ${speed} \2/" >>> $proto > $inittab >>> chown root:root $inittab >>> chmod 644 $inittab >>> >>> exit 0 >>> >>> --Apple-Mail-2-25159350 >>> Content-Transfer-Encoding: 7bit >>> Content-Type: application/octet-stream; >>> x-unix-mode=0644; >>> name=inittabX.proto >>> Content-Disposition: attachment; >>> filename=inittabX.proto >>> >>> # /etc/inittab: init(8) configuration. >>> # $Id: inittab,v 1.1 2004/10/14 19:09:29 espakman Exp $ >>> >>> # The default runlevel. >>> id:2: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 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel