# /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

# main rc script
::sysinit:/etc/init.d/rcS

# Put a shell on the serial port
# ttyS0::respawn:/sbin/getty -L 115200 ttyS0 vt102
::respawn:/bin/cttyhack /bin/login

# Stuff to do before rebooting
null::/bin/killall stbapp
null::shutdown:/usr/bin/gpio -n 4 -a -i 0 -w 0
null::shutdown:/bin/sleep 1
null::shutdown:/bin/sleep 1
null::shutdown:/bin/umount -a -r