# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
#
# Note: BusyBox init doesn't support runlevels.  The runlevels field is
# completely ignored by BusyBox init. If you want runlevels, use
# sysvinit.
#
# Format for each entry: <id>:<runlevels>:<action>:<process>
#
# id        == tty to run on, or empty for /dev/console
# runlevels == ignored
# action    == one of sysinit, respawn, askfirst, wait, and once
# process   == program to run
# Startup the system

::sysinit:/ciena/scripts/profile.sh 1

# Only 'console' and 'null' devices are available until mdev -s has run
null::sysinit:/bin/mount /proc

# Need sysfs tree before invoking mdev
null::sysinit:/bin/mount /sys

# Run all of these commands in one shell invocation since the mount of mdev blows away /dev/null
# and the other two commands would then have to run with output /dev/console which is crufty.
#    1. Create /dev tree
#    2. Set up mdev as the hotplug event handler
#    3. Seed the dev tree with initial devices
null::sysinit:/ciena/scripts/mount_dev

# Now that mdev -s has run, all devices should be available

# Create mount points for shm and pts
null::sysinit:/bin/mkdir /dev/shm /dev/pts

null::sysinit:/bin/mount -a

# Pass control to the rcS script
::sysinit:/ciena/scripts/profile.sh 2
::sysinit:/etc/init.d/rcS

# Start inetd
null::respawn:/usr/sbin/inetd -f

# Start clean_tmp (and respawn if it dies)
::respawn:/ciena/scripts/clean_tmp

# Launch services from rc.local - must run after rcS
::sysinit:/ciena/scripts/profile.sh 3
::sysinit:/etc/init.d/rc.local
::sysinit:/ciena/scripts/profile.sh 4

# Start the guardian running
::sysinit:/etc/init.d/rc.guardian run

# Launch the serial console in normal or debug mode
::respawn:/ciena/scripts/console.sh

# If nothing else is working, try uncommenting the following line to get
# a shell session at the serial port.
#::respawn:/bin/sh --login -i

