3 # Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
5 # Note: BusyBox init doesn't support runlevels. The runlevels field is
6 # completely ignored by BusyBox init. If you want runlevels, use
9 # Format for each entry: <id>:<runlevels>:<action>:<process>
11 # id == tty to run on, or empty for /dev/console
12 # runlevels == ignored
13 # action == one of sysinit, respawn, askfirst, wait, and once
14 # process == program to run
17 ::sysinit:/etc/init.d/rc.sysinit
19 # Put a getty on the serial port
20 #ttyS0::respawn:/sbin/getty -L 115200 ttyS0 vt100 # GENERIC_SERIAL
21 #tty1::respawn:/sbin/getty 115200 tty1
22 #hvc0::respawn:/sbin/getty 115200 hvc0 # xen virtual console
23 #console::respawn:/sbin/getty 115200 console
25 # Stuff to do for the 3-finger salute
26 ::ctrlaltdel:/sbin/reboot
28 # Stuff to do before rebooting
29 null::shutdown:/usr/bin/killall klogd
30 null::shutdown:/usr/bin/killall syslogd
31 null::shutdown:/bin/umount -a -r
32 null::shutdown:/sbin/swapoff -a