# 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 -t sysfs sysfs /sys
#null::sysinit:/bin/mount -o remount,rw /   # REMOUNT_ROOTFS_RW
::sysinit:/bin/mount -n -t devtmpfs -o noatime,size=1m devtmpfs /dev
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mkdir -p /dev/shm

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

# Run a shell on the first serial port. Comment this out if you want
# a getty instead
#ttyDefault::respawn:-/bin/sh
::respawn:/bin/cttyhack /bin/login root

# Uncomment this to run a getty on the first serial port
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100

# Stuff to do for the 3-finger salute
#::ctrlaltdel:/sbin/reboot

# Run a script on shutdown 
::shutdown:/etc/init.d/rcK
::shutdown:/bin/umount -a -r
::shutdown:/sbin/swapoff -a
