|
1 |
| -# /etc/inittab |
2 | 1 | #
|
3 |
| -# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org> |
| 2 | +# Format for each entry: <id>:<runlevels>:<action>:<process> |
4 | 3 | #
|
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. |
| 4 | +# id : tty to run on, or empty for /dev/console |
| 5 | +# runlevels : ignored |
| 6 | +# action : one of sysinit, respawn, askfirst, wait, and once |
| 7 | +# process : program to run |
8 | 8 | #
|
9 |
| -# Format for each entry: <id>:<runlevels>:<action>:<process> |
| 9 | +# Note: BusyBox init doesn't support runlevels. |
| 10 | +# The field is completely ignored. |
10 | 11 | #
|
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 | 12 |
|
16 |
| -# Startup the system |
17 |
| -#::sysinit:/bin/mount -t proc proc /proc |
18 |
| -#::sysinit:/bin/mount -o remount,rw / |
19 |
| -#::sysinit:/bin/mkdir -p /dev/pts /dev/shm |
20 |
| -#::sysinit:/bin/mount -a |
21 |
| -#::sysinit:/bin/mkdir -p /run/lock/subsys |
22 |
| -#::sysinit:/sbin/swapon -a |
23 |
| -#null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd |
24 |
| -#null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin |
25 |
| -#null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout |
26 |
| -#null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr |
27 |
| -#::sysinit:/bin/hostname -F /etc/hostname |
28 |
| -# now run any rc scripts |
| 13 | +# Start container system |
29 | 14 | ::sysinit:/etc/init.d/rcS
|
30 | 15 |
|
31 |
| -# Put a getty on the serial port |
32 |
| -#console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL |
33 |
| - |
34 |
| -# Stuff to do for the 3-finger salute |
35 |
| -#::ctrlaltdel:/sbin/reboot |
| 16 | +# finish by calling rc.local, if it exists and is executable |
| 17 | +::sysinit:/etc/rc.local |
36 | 18 |
|
37 | 19 | # Stuff to do before rebooting
|
38 | 20 | ::shutdown:/etc/init.d/rcK
|
39 |
| -#::shutdown:/sbin/swapoff -a |
40 |
| -#::shutdown:/bin/umount -a -r |
0 commit comments