# /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:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,ro,sync /
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mkdir -p /dev/shm
::sysinit:/sbin/fsck.ext3 -p /dev/mmcblk0p1
::sysinit:/bin/mount -a
::sysinit:/bin/hostname -F /etc/hostname
::sysinit:/bin/mkdir -p /tmp/log

# network initialization
::sysinit:/sbin/ifconfig lo 127.0.0.1 up
::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

# These get not handled by eudev.
::sysinit:/bin/ln -s /sys/devices/soc0/backlight/backlight/backlight /dev/gc4_backlight
::sysinit:/bin/ln -s /sys/devices/soc0/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-005b /dev/gc4_proximity
::sysinit:/bin/ln -s /sys/devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0040 /dev/gc4_hwmon

# now run any rc scripts
::sysinit:/etc/init.d/rcS

# Put a getty on the serial port
console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL

# update hardware clock
null::shutdown:/sbin/hwclock --utc -w

# Logging junk
null::sysinit:/bin/touch /var/log/messages
# For whatever reason at least this syslog instance seems to interfere
# with the one started from S01logging. When configuring for remote
# syslog the remote logging does not work. So disable them.
#null::respawn:/sbin/syslogd -n -m 0
#null::respawn:/sbin/klogd -n

# Stuff to do before rebooting
null::shutdown:/etc/init.d/rcK
null::shutdown:/sbin/swapoff -a
null::shutdown:/bin/umount -a -r
