diff options
| author | Eric Andersen <andersen@codepoet.org> | 2001-07-30 19:28:33 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 2001-07-30 19:28:33 +0000 |
| commit | 3555fd006e34c9328e6a1189eb020fac7be9a8fa (patch) | |
| tree | 6c16e97eb3ed46cb92b0bce5ccf5a0a641cf47d7 /examples | |
| parent | 13cb8427736298c80055ecd6a9abbef45849b527 (diff) | |
| download | busybox-w32-3555fd006e34c9328e6a1189eb020fac7be9a8fa.tar.gz busybox-w32-3555fd006e34c9328e6a1189eb020fac7be9a8fa.tar.bz2 busybox-w32-3555fd006e34c9328e6a1189eb020fac7be9a8fa.zip | |
Fix up the sample inittab entry per what is current.
-Erik
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/inittab | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/examples/inittab b/examples/inittab index 13a04afdc..8e7e945b3 100644 --- a/examples/inittab +++ b/examples/inittab | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | # <runlevels>: The runlevels field is completely ignored. | 24 | # <runlevels>: The runlevels field is completely ignored. |
| 25 | # | 25 | # |
| 26 | # <action>: Valid actions include: sysinit, respawn, askfirst, wait, once, | 26 | # <action>: Valid actions include: sysinit, respawn, askfirst, wait, once, |
| 27 | # and ctrlaltdel. | 27 | # ctrlaltdel, and shutdown. |
| 28 | # | 28 | # |
| 29 | # Note: askfirst acts just like respawn, but before running the specified | 29 | # Note: askfirst acts just like respawn, but before running the specified |
| 30 | # process it displays the line "Please press Enter to activate this | 30 | # process it displays the line "Please press Enter to activate this |
| @@ -36,14 +36,19 @@ | |||
| 36 | # | 36 | # |
| 37 | # <process>: Specifies the process to be executed and it's command line. | 37 | # <process>: Specifies the process to be executed and it's command line. |
| 38 | # | 38 | # |
| 39 | # Note: BusyBox init works just fine without an inittab. If no inittab | 39 | # Note: BusyBox init works just fine without an inittab. If no inittab is |
| 40 | # is found, it has the following default behavior: | 40 | # found, it has the following default behavior: |
| 41 | # ::sysinit:/etc/init.d/rcS | 41 | # ::sysinit:/etc/init.d/rcS |
| 42 | # ::askfirst:/bin/sh | 42 | # ::askfirst:/bin/sh |
| 43 | # if it detects that /dev/console is _not_ a serial console, it will also run: | 43 | # ::ctrlaltdel:/sbin/reboot |
| 44 | # tty2::askfirst:/bin/sh | 44 | # ::shutdown:/sbin/swapoff -a |
| 45 | # ::shutdown:/bin/umount -a -r | ||
| 46 | # if it detects that /dev/console is _not_ a serial console, it will | ||
| 47 | # also run: | ||
| 48 | # tty2::askfirst:/bin/sh | ||
| 49 | # tty3::askfirst:/bin/sh | ||
| 50 | # tty4::askfirst:/bin/sh | ||
| 45 | # | 51 | # |
| 46 | |||
| 47 | # Boot-time system configuration/initialization script. | 52 | # Boot-time system configuration/initialization script. |
| 48 | # This is run first except when booting in single-user mode. | 53 | # This is run first except when booting in single-user mode. |
| 49 | # | 54 | # |
| @@ -56,28 +61,26 @@ | |||
| 56 | # login, but since we are bypassing login in this case, BusyBox lets you do | 61 | # login, but since we are bypassing login in this case, BusyBox lets you do |
| 57 | # this yourself... | 62 | # this yourself... |
| 58 | # | 63 | # |
| 59 | # Start an "askfirst" shell on the console (whatever that may be). | 64 | # Start an "askfirst" shell on the console (whatever that may be) |
| 60 | ::askfirst:-/bin/sh | 65 | ::askfirst:-/bin/sh |
| 61 | # | ||
| 62 | # Start an "askfirst" shell on /dev/tty2-4 | 66 | # Start an "askfirst" shell on /dev/tty2-4 |
| 63 | tty2::askfirst:-/bin/sh | 67 | tty2::askfirst:-/bin/sh |
| 64 | tty3::askfirst:-/bin/sh | 68 | tty3::askfirst:-/bin/sh |
| 65 | tty4::askfirst:-/bin/sh | 69 | tty4::askfirst:-/bin/sh |
| 66 | 70 | ||
| 67 | # /sbin/getty invocations for selected ttys | 71 | # /sbin/getty invocations for selected ttys |
| 68 | # | 72 | tty4::respawn:/sbin/getty 38400 tty5 |
| 69 | tty5::respawn:/sbin/getty 38400 tty5 | 73 | tty5::respawn:/sbin/getty 38400 tty6 |
| 70 | tty6::respawn:/sbin/getty 38400 tty6 | ||
| 71 | 74 | ||
| 72 | # Example of how to put a getty on a serial line (for a terminal) | 75 | # Example of how to put a getty on a serial line (for a terminal) |
| 73 | # | 76 | #::respawn:/sbin/getty -L ttyS0 9600 vt100 |
| 74 | #ttyS0::respawn:/sbin/getty -L ttyS0 9600 vt100 | 77 | #::respawn:/sbin/getty -L ttyS1 9600 vt100 |
| 75 | #ttyS1::respawn:/sbin/getty -L ttyS1 9600 vt100 | ||
| 76 | # | 78 | # |
| 77 | # Example how to put a getty on a modem line. | 79 | # Example how to put a getty on a modem line. |
| 78 | #ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2 | 80 | #::respawn:/sbin/getty 57600 ttyS2 |
| 79 | 81 | ||
| 80 | # Stuff to do before rebooting | 82 | # Stuff to do before rebooting |
| 81 | ::ctrlaltdel:/bin/umount -a -r | 83 | ::ctrlaltdel:/sbin/reboot |
| 82 | ::ctrlaltdel:/sbin/swapoff -a | 84 | ::shutdown:/bin/umount -a -r |
| 85 | ::shutdown:/sbin/swapoff -a | ||
| 83 | 86 | ||
