diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-02-09 04:40:25 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-02-09 04:40:25 +0000 |
commit | d7ce5e780282148f86941ebb6babc7ae4b50b07e (patch) | |
tree | fc6b1d4f3de4cd732d0e4101a367f509f78218a5 | |
parent | e132f4b09e5c9aedaef97f65279e8702633fd425 (diff) | |
download | busybox-w32-d7ce5e780282148f86941ebb6babc7ae4b50b07e.tar.gz busybox-w32-d7ce5e780282148f86941ebb6babc7ae4b50b07e.tar.bz2 busybox-w32-d7ce5e780282148f86941ebb6babc7ae4b50b07e.zip |
Update the sample inittab to add the "ctrlaltdel" action.
Note a bug in busybox init that I need to fix.
-Erik
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | examples/inittab | 8 | ||||
-rw-r--r-- | scripts/inittab | 8 |
3 files changed, 14 insertions, 6 deletions
@@ -10,6 +10,10 @@ around to it some time. If you have any good ideas, please let me know. | |||
10 | separate package (named perhaps tiny-netkit?). This currently includes | 10 | separate package (named perhaps tiny-netkit?). This currently includes |
11 | hostid, hostname, mnc, and ping. | 11 | hostid, hostname, mnc, and ping. |
12 | 12 | ||
13 | * init's waitfor() calls wait() which can catch and ignore the wrong pid | ||
14 | exiting. That other process is then not restarted. | ||
15 | |||
16 | |||
13 | 17 | ||
14 | -Erik | 18 | -Erik |
15 | 19 | ||
diff --git a/examples/inittab b/examples/inittab index dc8e92114..bb547b740 100644 --- a/examples/inittab +++ b/examples/inittab | |||
@@ -23,7 +23,8 @@ | |||
23 | # | 23 | # |
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, and once. | 26 | # <action>: Valid actions include: sysinit, respawn, askfirst, wait, once, |
27 | # and ctrlaltdel. | ||
27 | # | 28 | # |
28 | # Note: askfirst acts just like respawn, but before running the specified | 29 | # Note: askfirst acts just like respawn, but before running the specified |
29 | # process it displays the line "Please press Enter to activate this | 30 | # process it displays the line "Please press Enter to activate this |
@@ -70,6 +71,7 @@ tty5::respawn:/sbin/getty 38400 tty5 | |||
70 | # Example how to put a getty on a modem line. | 71 | # Example how to put a getty on a modem line. |
71 | #ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2 | 72 | #ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2 |
72 | 73 | ||
73 | # Not currently supported, but may be sometime in the future... | 74 | # Stuff to do before rebooting |
74 | #::ctrlaltdel:/sbin/reboot | 75 | ::ctrlaltdel:/bin/umount -a -r > /dev/null 2>&1 |
76 | ::ctrlaltdel:/sbin/swapoff -a > /dev/null 2>&1 | ||
75 | 77 | ||
diff --git a/scripts/inittab b/scripts/inittab index dc8e92114..bb547b740 100644 --- a/scripts/inittab +++ b/scripts/inittab | |||
@@ -23,7 +23,8 @@ | |||
23 | # | 23 | # |
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, and once. | 26 | # <action>: Valid actions include: sysinit, respawn, askfirst, wait, once, |
27 | # and ctrlaltdel. | ||
27 | # | 28 | # |
28 | # Note: askfirst acts just like respawn, but before running the specified | 29 | # Note: askfirst acts just like respawn, but before running the specified |
29 | # process it displays the line "Please press Enter to activate this | 30 | # process it displays the line "Please press Enter to activate this |
@@ -70,6 +71,7 @@ tty5::respawn:/sbin/getty 38400 tty5 | |||
70 | # Example how to put a getty on a modem line. | 71 | # Example how to put a getty on a modem line. |
71 | #ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2 | 72 | #ttyS2::respawn:/sbin/getty -x0 -s 57600 ttyS2 |
72 | 73 | ||
73 | # Not currently supported, but may be sometime in the future... | 74 | # Stuff to do before rebooting |
74 | #::ctrlaltdel:/sbin/reboot | 75 | ::ctrlaltdel:/bin/umount -a -r > /dev/null 2>&1 |
76 | ::ctrlaltdel:/sbin/swapoff -a > /dev/null 2>&1 | ||
75 | 77 | ||