blob: 235c8356e3fbc83eb794b9fcb3200975f401fd3f [file] [log] [blame]
Jeremy Kerrf006cdf2015-09-17 17:55:39 +08001# /etc/inittab
2#
3# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
4#
5# Note: BusyBox init doesn't support runlevels. The runlevels field is
6# completely ignored by BusyBox init. If you want runlevels, use
7# sysvinit.
8#
9# Format for each entry: <id>:<runlevels>:<action>:<process>
10#
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
15
16# Startup the system
17null::sysinit:/bin/mount -t proc proc /proc
18null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
19null::sysinit:/bin/mkdir -p /dev/pts
20null::sysinit:/bin/mkdir -p /dev/shm
21null::sysinit:/bin/mount -a
22null::sysinit:/bin/hostname -F /etc/hostname
23# now run any rc scripts
24null::sysinit:/etc/init.d/rcS
25
26# Stuff to do for the 3-finger salute
27::ctrlaltdel:/sbin/reboot
28
29# Stuff to do before rebooting
30null::shutdown:/etc/init.d/rcK
31null::shutdown:/bin/umount -a -r
32null::shutdown:/sbin/swapoff -a
33
34null::restart:/usr/sbin/kexec-restart