diff options
Diffstat (limited to 'examples/inittab')
-rw-r--r-- | examples/inittab | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/inittab b/examples/inittab index 45f5a61fe..4eed84885 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 | # ctrlaltdel, and shutdown. | 27 | # restart, 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 |
@@ -43,6 +43,8 @@ | |||
43 | # ::ctrlaltdel:/sbin/reboot | 43 | # ::ctrlaltdel:/sbin/reboot |
44 | # ::shutdown:/sbin/swapoff -a | 44 | # ::shutdown:/sbin/swapoff -a |
45 | # ::shutdown:/bin/umount -a -r | 45 | # ::shutdown:/bin/umount -a -r |
46 | # ::restart:/sbin/init | ||
47 | # | ||
46 | # if it detects that /dev/console is _not_ a serial console, it will | 48 | # if it detects that /dev/console is _not_ a serial console, it will |
47 | # also run: | 49 | # also run: |
48 | # tty2::askfirst:/bin/sh | 50 | # tty2::askfirst:/bin/sh |
@@ -79,6 +81,9 @@ tty5::respawn:/sbin/getty 38400 tty6 | |||
79 | # Example how to put a getty on a modem line. | 81 | # Example how to put a getty on a modem line. |
80 | #::respawn:/sbin/getty 57600 ttyS2 | 82 | #::respawn:/sbin/getty 57600 ttyS2 |
81 | 83 | ||
84 | # Stuff to do when restarting the init process | ||
85 | ::restart:/sbin/init | ||
86 | |||
82 | # Stuff to do before rebooting | 87 | # Stuff to do before rebooting |
83 | ::ctrlaltdel:/sbin/reboot | 88 | ::ctrlaltdel:/sbin/reboot |
84 | ::shutdown:/bin/umount -a -r | 89 | ::shutdown:/bin/umount -a -r |